def _isframe(obj):
    '''Return True for a stack frame object.
    '''
    try:  # safe isframe(), see pympler.muppy
        return isframe(obj)
    except ReferenceError:
        return False
Return True for a stack frame object.
    
recipes/Python/546530_Size_of_Python_objects_revised/recipe-546530.py