Home
last modified time | relevance | path

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

/external/python/cpython2/Objects/
Dgenobject.c14 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/
Dcoroutines.py79 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/
Dtypes.py221 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):
Ddis.py62 x = x.gi_code
137 x = x.gi_code
Dinspect.py234 bool(object.gi_code.co_flags & CO_ITERABLE_COROUTINE) or
/external/python/cpython2/Include/
Dgenobject.h23 PyObject *gi_code; member
/external/python/cpython3/Objects/
Dgenobject.c35 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/
Dtest_types.py1489 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)
Dtest_generators.py489 self.assertEqual(gen_b.gi_yieldfrom.gi_code.co_name, 'a')
Dtest_coroutines.py919 self.assertEqual(coro_b.cr_await.cr_await.gi_code.co_name, 'a')
/external/python/cpython2/Misc/NEWS.d/
D2.6b1.rst85 ``gen.gi_code.co_name``, like ``func.__name___`` that equals
D2.6a1.rst216 generator objects gain a gi_code attribute. This is the same object as the
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_tasks.py437 code = gen.gi_code
452 code = gen.gi_code
2258 self.assertIsInstance(gen.gi_code, types.CodeType)
/external/python/cpython2/Doc/library/
Dinspect.rst95 | | gi_code | code object | |
/external/python/cpython3/Doc/library/
Dinspect.rst208 | | gi_code | code |
/external/python/cpython3/Misc/NEWS.d/
D3.5.0a1.rst462 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/
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
/external/python/cpython2/Doc/whatsnew/
D2.6.rst1648 * Generator objects now have a :attr:`gi_code` attribute that refers to
/external/python/cpython3/Misc/
DHISTORY16647 equals ``gen.gi_code.co_name``, like ``func.__name___`` that equals