/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 | 78 def gi_code(self): member in CoroWrapper 79 return self.gen.gi_code 223 elif hasattr(coro, 'gi_code') and coro.gi_code: 224 coro_code = coro.gi_code
|
/external/python/cpython3/Lib/ |
D | types.py | 214 def gi_code(self): member in _GeneratorWrapper 215 return self.__wrapped.gi_code 225 cr_code = gi_code 279 coro.__class__ is GeneratorType and coro.gi_code.co_flags & 0x100):
|
D | dis.py | 53 x = x.gi_code 128 x = x.gi_code
|
D | inspect.py | 225 bool(object.gi_code.co_flags & CO_ITERABLE_COROUTINE) or
|
/external/python/cpython3/Objects/ |
D | genobject.c | 32 Py_VISIT(gen->gi_code); in gen_traverse() 77 if (gen->gi_code != NULL && in _PyGen_Finalize() 78 ((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE && in _PyGen_Finalize() 141 if (((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE) { in gen_dealloc() 144 Py_CLEAR(gen->gi_code); in gen_dealloc() 712 {"gi_code", T_OBJECT, offsetof(PyGenObject, gi_code), READONLY}, 789 gen->gi_code = (PyObject *)(f->f_code); in gen_new_with_qualname() 799 gen->gi_name = ((PyCodeObject *)gen->gi_code)->co_name; in gen_new_with_qualname() 851 PyCodeObject *code = (PyCodeObject *)((PyGenObject*)o)->gi_code; in gen_is_coroutine()
|
/external/python/cpython2/Include/ |
D | genobject.h | 23 PyObject *gi_code; member
|
/external/python/cpython3/Lib/test/ |
D | test_types.py | 1460 gen.gi_code = object() 1464 self.assertIs(wrapper.gi_code, gen.gi_code) 1468 self.assertIs(wrapper.cr_code, gen.gi_code) 1591 self.assertIs(foo().cr_code, gen.gi_code) 1634 self.assertTrue(g.gi_code.co_flags & inspect.CO_ITERABLE_COROUTINE) 1635 self.assertFalse(g.gi_code.co_flags & inspect.CO_COROUTINE)
|
D | test_generators.py | 342 self.assertEqual(gen_b.gi_yieldfrom.gi_code.co_name, 'a')
|
D | test_coroutines.py | 920 self.assertEqual(coro_b.cr_await.cr_await.gi_code.co_name, 'a')
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_tasks.py | 354 code = gen.gi_code 369 code = gen.gi_code 1866 self.assertIsInstance(gen.gi_code, types.CodeType)
|
/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/cpython2/Doc/library/ |
D | inspect.rst | 95 | | gi_code | code object | |
|
/external/python/cpython3/Doc/library/ |
D | inspect.rst | 199 | | 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
|