БГ
Size: a a a
AT
import inspect
def f():
for x in range(5):
yield x
f1 = f()
objs = inspect.getmembers(f)
objs = [x for x in objs if '__globals__' in x]
code = objs[0][1]['f1'].gi_code
for x in dir(code):
if x.startswith('co_'):
print(f"{x}: {getattr(code, x)}")
БГ
БГ
БГ
БГ
БГ
import inspect
def f():
for x in range(5):
yield x
f1 = f()
objs = inspect.getmembers(f)
objs = [x for x in objs if '__globals__' in x]
code = objs[0][1]['f1'].gi_code
for x in dir(code):
if x.startswith('co_'):
print(f"{x}: {getattr(code, x)}")
AT
ВП
ВП
EA
БГ
R3
БГ
ГЧ
AT
NY
ГЧ
E