def basicsize(obj, **opts):
    '''Return the basic size of an object (in bytes).

    The available options and defaults are:

        *derive=False* -- derive type from super type

        *infer=False* -- try to infer types

        *save=False* -- save the type definition if new
    '''
    b = _typedefof(obj, **opts)
    if b:
        b = b.base
    return b
Return the basic size of an object (in bytes).

    The available options and defaults are:

        *derive=False* -- derive type from super type

        *infer=False* -- try to infer types

        *save=False* -- save the type definition if new
    
recipes/Python/546530_Size_of_Python_objects_revised/recipe-546530.py