def _typedef_both(t, base=0, item=0, alen=None, refs=None,
                     kind=_kind_static, heap=False, vari=_Not_vari):
    '''Adds new typedef for both data and code.
    '''
    v = _Typedef(base=_basicsize(t, base=base), item=_itemsize(t, item),
                 refs=refs, alen=alen,
                 both=True, kind=kind, type=t, vari=vari)
    v.save(t, base=base, heap=heap)
    return v  # for _dict_typedef
Adds new typedef for both data and code.
    
recipes/Python/546530_Size_of_Python_objects_revised/recipe-546530.py