/third_party/python/Objects/clinic/ |
D | codeobject.c.h | 22 int co_nlocals, int co_stacksize, int co_flags, 42 int co_flags = self->co_flags; in code_replace() local 137 co_flags = _PyLong_AsInt(args[5]); in code_replace() 138 if (co_flags == -1 && PyErr_Occurred()) { in code_replace() 251 …count, co_posonlyargcount, co_kwonlyargcount, co_nlocals, co_stacksize, co_flags, co_firstlineno, … in code_replace()
|
/third_party/python/Lib/ |
D | types.py | 253 co_flags = func.__code__.co_flags 257 if co_flags & 0x180: 262 if co_flags & 0x20: 266 func.__code__ = co.replace(co_flags=co.co_flags | 0x100) 280 coro.__class__ is GeneratorType and coro.gi_code.co_flags & 0x100):
|
D | bdb.py | 132 if self.stopframe and frame.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS: 147 if self.stopframe and frame.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS: 171 if not (frame.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS 180 and self.stopframe.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS 316 if frame.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS:
|
D | codeop.py | 145 if codeob.co_flags & feature.compiler_flag:
|
D | inspect.py | 181 return bool(f.__code__.co_flags & flag) 234 bool(object.gi_code.co_flags & CO_ITERABLE_COROUTINE) or 1086 if co.co_flags & CO_VARARGS: 1090 if co.co_flags & CO_VARKEYWORDS: 2210 if func_code.co_flags & CO_VARARGS: 2227 if func_code.co_flags & CO_VARKEYWORDS: 2229 if func_code.co_flags & CO_VARARGS:
|
D | dis.py | 164 lines.append("Flags: %s" % pretty_flags(co.co_flags))
|
D | pdb.py | 1141 if co.co_flags & inspect.CO_VARARGS: n = n+1 1142 if co.co_flags & inspect.CO_VARKEYWORDS: n = n+1
|
/third_party/python/Lib/test/ |
D | test_code.py | 203 self.assertFalse(function.__code__.co_flags & inspect.CO_NOFREE, 204 hex(function.__code__.co_flags)) 221 co.co_flags, 251 ("co_flags", code.co_flags | inspect.CO_COROUTINE),
|
D | test_types.py | 1404 foo_flags = foo.__code__.co_flags 1407 self.assertEqual(foo.__code__.co_flags, foo_flags) 1416 self.assertEqual(coro.cr_code.co_flags, foo_flags) 1659 self.assertTrue(gen.__code__.co_flags & inspect.CO_ITERABLE_COROUTINE) 1660 self.assertFalse(gen.__code__.co_flags & inspect.CO_COROUTINE) 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_coroutines.py | 513 self.assertTrue(bool(foo.__code__.co_flags & inspect.CO_COROUTINE)) 514 self.assertFalse(bool(foo.__code__.co_flags & inspect.CO_GENERATOR)) 515 self.assertTrue(bool(f.cr_code.co_flags & inspect.CO_COROUTINE)) 516 self.assertFalse(bool(f.cr_code.co_flags & inspect.CO_GENERATOR)) 522 self.assertFalse(bool(bar.__code__.co_flags & inspect.CO_COROUTINE))
|
D | test_grammar.py | 1840 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE)) 1851 self.assertTrue(bool(test2.__code__.co_flags & inspect.CO_COROUTINE))
|
D | test_builtin.py | 392 self.assertNotEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE, 438 self.assertEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,
|
/third_party/python/Objects/ |
D | codeobject.c | 234 co->co_flags = flags; in PyCode_NewWithPosOnlyArgs() 381 {"co_flags", T_INT, OFF(co_flags), READONLY}, 640 int co_nlocals, int co_stacksize, int co_flags, in code_replace_impl() argument 660 CHECK_INT_ARG(co_flags); in code_replace_impl() 668 co_stacksize, co_flags) < 0) { in code_replace_impl() 674 co_stacksize, co_flags, (PyObject*)co_code, co_consts, co_names, in code_replace_impl() 855 eq = co->co_flags == cp->co_flags; in code_richcompare() 924 co->co_nlocals ^ co->co_flags; in code_hash()
|
D | frameobject.c | 897 if ((code->co_flags & (CO_NEWLOCALS | CO_OPTIMIZED)) == in _PyFrame_New_NoTrack() 900 else if (code->co_flags & CO_NEWLOCALS) { in _PyFrame_New_NoTrack() 1114 if (co->co_flags & CO_OPTIMIZED) { in PyFrame_FastToLocalsWithError() 1167 if (co->co_flags & CO_OPTIMIZED) { in PyFrame_LocalsToFast()
|
D | genobject.c | 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() 837 if (code->co_flags & CO_ITERABLE_COROUTINE) { in gen_is_coroutine()
|
D | call.c | 364 (co->co_flags & ~PyCF_MASK) == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) in _PyFunction_Vectorcall()
|
/third_party/libnl/include/netlink-private/ |
D | cache-api.h | 180 unsigned int co_flags; member
|
/third_party/python/Include/cpython/ |
D | code.h | 25 int co_flags; /* CO_..., see below */ member
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | debug.py | 273 code.co_flags, code.co_code, code.co_consts, 280 code.co_flags, code.co_code, code.co_consts,
|
/third_party/libnl/lib/ |
D | cache_mngt.c | 240 ops->co_flags |= flags; in nl_cache_ops_set_flags()
|
D | cache.c | 194 cache->c_flags |= ops->co_flags; in nl_cache_alloc()
|
/third_party/python/Python/ |
D | ceval.c | 2232 if (co->co_flags & CO_ASYNC_GENERATOR) { in _PyEval_EvalFrameDefault() 3279 if (!(co->co_flags & (CO_COROUTINE | CO_ITERABLE_COROUTINE))) { in _PyEval_EvalFrameDefault() 3962 assert((co->co_flags & CO_VARARGS) == 0); in too_many_positional() 4109 if (co->co_flags & CO_VARKEYWORDS) { in _PyEval_EvalCode() 4114 if (co->co_flags & CO_VARARGS) { in _PyEval_EvalCode() 4137 if (co->co_flags & CO_VARARGS) { in _PyEval_EvalCode() 4215 if ((argcount > co->co_argcount) && !(co->co_flags & CO_VARARGS)) { in _PyEval_EvalCode() 4301 if (co->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR)) { in _PyEval_EvalCode() 4303 int is_coro = co->co_flags & CO_COROUTINE; in _PyEval_EvalCode() 4313 } else if (co->co_flags & CO_ASYNC_GENERATOR) { in _PyEval_EvalCode() [all …]
|
D | marshal.c | 517 w_long(co->co_flags, p); in w_complex_object()
|
D | pythonrun.c | 1279 flags->cf_flags |= (co->co_flags & PyCF_MASK); in run_pyc_file()
|
/third_party/python/Lib/unittest/ |
D | mock.py | 2139 code_mock.co_flags = inspect.CO_COROUTINE 2883 code_mock.co_flags = inspect.CO_ITERABLE_COROUTINE
|