Home
last modified time | relevance | path

Searched refs:gi_code (Results 1 – 13 of 13) sorted by relevance

/third_party/python/Lib/
Dtypes.py224 def gi_code(self): member in _GeneratorWrapper
225 return self.__wrapped.gi_code
235 cr_code = gi_code
283 coro.__class__ is GeneratorType and coro.gi_code.co_flags & 0x100):
Ddis.py87 x = x.gi_code
169 x = x.gi_code
Dinspect.py453 bool(object.gi_code.co_flags & CO_ITERABLE_COROUTINE) or
/third_party/python/Objects/
Dgenobject.c35 Py_VISIT(gen->gi_code); in gen_traverse()
89 if (gen->gi_code != NULL && in _PyGen_Finalize()
90 ((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE && in _PyGen_Finalize()
140 if (((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE) { in gen_dealloc()
143 Py_CLEAR(gen->gi_code); in gen_dealloc()
359 assert(_Py_OPCODE(_PyCode_CODE(gen->gi_code)[0]) != SEND); in _PyGen_yf()
805 {"gi_code", T_OBJECT, offsetof(PyGenObject, gi_code), READONLY|PY_AUDIT_READ},
814 PyCodeObject *code = gen->gi_code; in gen_sizeof()
902 gen->gi_code = (PyCodeObject *)func->func_code; in make_gen()
903 Py_INCREF(gen->gi_code); in make_gen()
[all …]
/third_party/python/Lib/asyncio/
Dcoroutines.py79 elif hasattr(coro, 'gi_code') and coro.gi_code:
80 coro_code = coro.gi_code
/third_party/python/Lib/test/
Dtest_types.py1952 gen.gi_code = object()
1956 self.assertIs(wrapper.gi_code, gen.gi_code)
1960 self.assertIs(wrapper.cr_code, gen.gi_code)
2083 self.assertIs(foo().cr_code, gen.gi_code)
2126 self.assertTrue(g.gi_code.co_flags & inspect.CO_ITERABLE_COROUTINE)
2127 self.assertFalse(g.gi_code.co_flags & inspect.CO_COROUTINE)
Dtest_generators.py580 self.assertEqual(gen_b.gi_yieldfrom.gi_code.co_name, 'a')
Dtest_coroutines.py940 self.assertEqual(coro_b.cr_await.cr_await.gi_code.co_name, 'a')
/third_party/python/Doc/library/
Dinspect.rst210 | | gi_code | code |
/third_party/python/Doc/whatsnew/
D3.5.rst2413 instead of being set from the code name. Use ``gen.gi_code.co_name`` to
D2.6.rst1652 * Generator objects now have a :attr:`gi_code` attribute that refers to
/third_party/python/Misc/
DNEWS35275 ``gen.gi_code.co_name`` to get the name of the code.
36021 based on their gi_code attribute. Patch by Clement Rouault.
DHISTORY16647 equals ``gen.gi_code.co_name``, like ``func.__name___`` that equals