def _itemsize(t, item=0):
    '''Get non-zero itemsize of type.
    '''
    # replace zero value with default
    return getattr(t, '__itemsize__', 0) or item
Get non-zero itemsize of type.
    
recipes/Python/546530_Size_of_Python_objects_revised/recipe-546530.py