Home
last modified time | relevance | path

Searched refs:co_flags (Results 1 – 25 of 29) sorted by relevance

12

/third_party/python/Objects/clinic/
Dcodeobject.c.h22 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/
Dtypes.py253 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):
Dbdb.py132 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:
Dcodeop.py145 if codeob.co_flags & feature.compiler_flag:
Dinspect.py181 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:
Ddis.py164 lines.append("Flags: %s" % pretty_flags(co.co_flags))
Dpdb.py1141 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/
Dtest_code.py203 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),
Dtest_types.py1404 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)
Dtest_coroutines.py513 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))
Dtest_grammar.py1840 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE))
1851 self.assertTrue(bool(test2.__code__.co_flags & inspect.CO_COROUTINE))
Dtest_builtin.py392 self.assertNotEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,
438 self.assertEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,
/third_party/python/Objects/
Dcodeobject.c234 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()
Dframeobject.c897 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()
Dgenobject.c81 ((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()
Dcall.c364 (co->co_flags & ~PyCF_MASK) == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) in _PyFunction_Vectorcall()
/third_party/libnl/include/netlink-private/
Dcache-api.h180 unsigned int co_flags; member
/third_party/python/Include/cpython/
Dcode.h25 int co_flags; /* CO_..., see below */ member
/third_party/node/tools/inspector_protocol/jinja2/
Ddebug.py273 code.co_flags, code.co_code, code.co_consts,
280 code.co_flags, code.co_code, code.co_consts,
/third_party/libnl/lib/
Dcache_mngt.c240 ops->co_flags |= flags; in nl_cache_ops_set_flags()
Dcache.c194 cache->c_flags |= ops->co_flags; in nl_cache_alloc()
/third_party/python/Python/
Dceval.c2232 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 …]
Dmarshal.c517 w_long(co->co_flags, p); in w_complex_object()
Dpythonrun.c1279 flags->cf_flags |= (co->co_flags & PyCF_MASK); in run_pyc_file()
/third_party/python/Lib/unittest/
Dmock.py2139 code_mock.co_flags = inspect.CO_COROUTINE
2883 code_mock.co_flags = inspect.CO_ITERABLE_COROUTINE

12