/external/python/cpython2/Objects/ |
D | genobject.c | 14 Py_VISIT(gen->gi_code); in gen_traverse() 39 Py_CLEAR(gen->gi_code); in gen_dealloc() 291 code_name = PyString_AsString(((PyCodeObject *)gen->gi_code)->co_name); in gen_repr() 302 PyObject *name = ((PyCodeObject *)gen->gi_code)->co_name; in gen_get_name() 320 {"gi_code", T_OBJECT, offsetof(PyGenObject, gi_code), RO}, 392 gen->gi_code = (PyObject *)(f->f_code); in PyGen_New()
|
/external/python/cpython3/Lib/asyncio/ |
D | coroutines.py | 79 def gi_code(self): member in CoroWrapper 80 return self.gen.gi_code 227 elif hasattr(coro, 'gi_code') and coro.gi_code: 228 coro_code = coro.gi_code
|
/external/python/cpython3/Lib/ |
D | types.py | 221 def gi_code(self): member in _GeneratorWrapper 222 return self.__wrapped.gi_code 232 cr_code = gi_code 280 coro.__class__ is GeneratorType and coro.gi_code.co_flags & 0x100):
|
D | dis.py | 62 x = x.gi_code 137 x = x.gi_code
|
D | inspect.py | 234 bool(object.gi_code.co_flags & CO_ITERABLE_COROUTINE) or
|
/external/python/cpython2/Include/ |
D | genobject.h | 23 PyObject *gi_code; member
|
/external/python/cpython3/Objects/ |
D | genobject.c | 35 Py_VISIT(gen->gi_code); in gen_traverse() 80 if (gen->gi_code != NULL && in _PyGen_Finalize() 81 ((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE && in _PyGen_Finalize() 129 if (((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE) { in gen_dealloc() 132 Py_CLEAR(gen->gi_code); in gen_dealloc() 716 {"gi_code", T_OBJECT, offsetof(PyGenObject, gi_code), READONLY}, 792 gen->gi_code = (PyObject *)(f->f_code); in gen_new_with_qualname() 802 gen->gi_name = ((PyCodeObject *)gen->gi_code)->co_name; in gen_new_with_qualname() 836 PyCodeObject *code = (PyCodeObject *)((PyGenObject*)o)->gi_code; in gen_is_coroutine()
|
/external/python/cpython3/Lib/test/ |
D | test_types.py | 1489 gen.gi_code = object() 1493 self.assertIs(wrapper.gi_code, gen.gi_code) 1497 self.assertIs(wrapper.cr_code, gen.gi_code) 1620 self.assertIs(foo().cr_code, gen.gi_code) 1663 self.assertTrue(g.gi_code.co_flags & inspect.CO_ITERABLE_COROUTINE) 1664 self.assertFalse(g.gi_code.co_flags & inspect.CO_COROUTINE)
|
D | test_generators.py | 489 self.assertEqual(gen_b.gi_yieldfrom.gi_code.co_name, 'a')
|
D | test_coroutines.py | 919 self.assertEqual(coro_b.cr_await.cr_await.gi_code.co_name, 'a')
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.6b1.rst | 85 ``gen.gi_code.co_name``, like ``func.__name___`` that equals
|
D | 2.6a1.rst | 216 generator objects gain a gi_code attribute. This is the same object as the
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_tasks.py | 437 code = gen.gi_code 452 code = gen.gi_code 2258 self.assertIsInstance(gen.gi_code, types.CodeType)
|
/external/python/cpython2/Doc/library/ |
D | inspect.rst | 95 | | gi_code | code object | |
|
/external/python/cpython3/Doc/library/ |
D | inspect.rst | 208 | | gi_code | code |
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.0a1.rst | 462 instead of the code. Use ``gen.gi_code.co_name`` to get the name of the 2891 gi_code attribute. Patch by Clement Rouault.
|
/external/python/cpython3/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
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.6.rst | 1648 * Generator objects now have a :attr:`gi_code` attribute that refers to
|
/external/python/cpython3/Misc/ |
D | HISTORY | 16647 equals ``gen.gi_code.co_name``, like ``func.__name___`` that equals
|