def _gen_refs(obj, named):
    '''Return the referent(s) of a generator object.
    '''
    # only some gi_frame attrs
    f = getattr(obj, 'gi_frame', None)
    return _refs(f, named, 'f_locals', 'f_code')
Return the referent(s) of a generator object.
    
recipes/Python/546530_Size_of_Python_objects_revised/recipe-546530.py