def create_empty(cls, val=0x00):
        """Create an empty Userdata object.

        val: value to fill the empty user data fields with (default is 0x00)
        """
        userdata_dict = {}
        for i in range(1, 15):
            key = 'd{}'.format(i)
            userdata_dict.update({key: val})
        return userdata_dict
def create_empty ( cls , val = 0x00 ) : userdata_dict = { } for i in range ( 1 , 15 ) : key = 'd{}' . format ( i ) userdata_dict . update ( { key : val } ) return userdata_dict
Create an empty Userdata object.

        val: value to fill the empty user data fields with (default is 0x00)