Searched refs:gi_code (Results 1 – 13 of 13) sorted by relevance
| /third_party/python/Lib/ |
| D | types.py | 224 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):
|
| D | dis.py | 87 x = x.gi_code 169 x = x.gi_code
|
| D | inspect.py | 453 bool(object.gi_code.co_flags & CO_ITERABLE_COROUTINE) or
|
| /third_party/python/Objects/ |
| D | genobject.c | 35 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/ |
| D | coroutines.py | 79 elif hasattr(coro, 'gi_code') and coro.gi_code: 80 coro_code = coro.gi_code
|
| /third_party/python/Lib/test/ |
| D | test_types.py | 1952 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)
|
| D | test_generators.py | 580 self.assertEqual(gen_b.gi_yieldfrom.gi_code.co_name, 'a')
|
| D | test_coroutines.py | 940 self.assertEqual(coro_b.cr_await.cr_await.gi_code.co_name, 'a')
|
| /third_party/python/Doc/library/ |
| D | inspect.rst | 210 | | gi_code | code |
|
| /third_party/python/Doc/whatsnew/ |
| D | 3.5.rst | 2413 instead of being set from the code name. Use ``gen.gi_code.co_name`` to
|
| D | 2.6.rst | 1652 * Generator objects now have a :attr:`gi_code` attribute that refers to
|
| /third_party/python/Misc/ |
| D | NEWS | 35275 ``gen.gi_code.co_name`` to get the name of the code. 36021 based on their gi_code attribute. Patch by Clement Rouault.
|
| D | HISTORY | 16647 equals ``gen.gi_code.co_name``, like ``func.__name___`` that equals
|