Home
last modified time | relevance | path

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

12

/third_party/python/Lib/
Dtypes.py258 co_flags = func.__code__.co_flags
262 if co_flags & 0x180:
267 if co_flags & 0x20:
271 func.__code__ = co.replace(co_flags=co.co_flags | 0x100)
285 coro.__class__ is GeneratorType and coro.gi_code.co_flags & 0x100):
Dbdb.py134 if self.stopframe and frame.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS:
149 if self.stopframe and frame.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS:
173 if not (frame.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS
182 and self.stopframe.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS
318 if frame.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS:
Dcodeop.py152 if codeob.co_flags & feature.compiler_flag:
Dinspect.py299 return bool(f.__code__.co_flags & flag)
352 bool(object.gi_code.co_flags & CO_ITERABLE_COROUTINE) or
1209 if co.co_flags & CO_VARARGS:
1213 if co.co_flags & CO_VARKEYWORDS:
2337 if func_code.co_flags & CO_VARARGS:
2354 if func_code.co_flags & CO_VARKEYWORDS:
2356 if func_code.co_flags & CO_VARARGS:
Ddis.py164 lines.append("Flags: %s" % pretty_flags(co.co_flags))
Dpdb.py1144 if co.co_flags & inspect.CO_VARARGS: n = n+1
1145 if co.co_flags & inspect.CO_VARKEYWORDS: n = n+1
/third_party/python/Objects/clinic/
Dcodeobject.c.h158 int co_nlocals, int co_stacksize, int co_flags,
178 int co_flags = self->co_flags; in code_replace() local
243 co_flags = _PyLong_AsInt(args[5]); in code_replace()
244 if (co_flags == -1 && PyErr_Occurred()) { in code_replace()
352 …count, co_posonlyargcount, co_kwonlyargcount, co_nlocals, co_stacksize, co_flags, co_firstlineno, … in code_replace()
/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_coroutines.py515 self.assertTrue(bool(foo.__code__.co_flags & inspect.CO_COROUTINE))
516 self.assertFalse(bool(foo.__code__.co_flags & inspect.CO_GENERATOR))
517 self.assertTrue(bool(f.cr_code.co_flags & inspect.CO_COROUTINE))
518 self.assertFalse(bool(f.cr_code.co_flags & inspect.CO_GENERATOR))
524 self.assertFalse(bool(bar.__code__.co_flags & inspect.CO_COROUTINE))
Dtest_types.py1786 foo_flags = foo.__code__.co_flags
1789 self.assertEqual(foo.__code__.co_flags, foo_flags)
1798 self.assertEqual(coro.cr_code.co_flags, foo_flags)
2041 self.assertTrue(gen.__code__.co_flags & inspect.CO_ITERABLE_COROUTINE)
2042 self.assertFalse(gen.__code__.co_flags & inspect.CO_COROUTINE)
2045 self.assertTrue(g.gi_code.co_flags & inspect.CO_ITERABLE_COROUTINE)
2046 self.assertFalse(g.gi_code.co_flags & inspect.CO_COROUTINE)
Dtest_grammar.py1942 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE))
1953 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.c242 co->co_flags = flags; in PyCode_NewWithPosOnlyArgs()
389 {"co_flags", T_INT, OFF(co_flags), READONLY},
725 int co_nlocals, int co_stacksize, int co_flags, in code_replace_impl() argument
745 CHECK_INT_ARG(co_flags); in code_replace_impl()
753 co_stacksize, co_flags) < 0) { in code_replace_impl()
759 co_stacksize, co_flags, (PyObject*)co_code, co_consts, co_names, in code_replace_impl()
940 eq = co->co_flags == cp->co_flags; in code_richcompare()
1009 co->co_nlocals ^ co->co_flags; in code_hash()
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()
886 if (code->co_flags & CO_ITERABLE_COROUTINE) { in gen_is_coroutine()
Dframeobject.c1063 if (co->co_flags & CO_OPTIMIZED) { in PyFrame_FastToLocalsWithError()
1116 if (co->co_flags & CO_OPTIMIZED) { in PyFrame_LocalsToFast()
Dcall.c341 if (((PyCodeObject *)f->fc_code)->co_flags & CO_OPTIMIZED) { in _PyFunction_Vectorcall()
/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/python/Include/cpython/
Dcode.h25 int co_flags; /* CO_..., see below */ member
/third_party/jinja2/
Ddebug.py129 code.co_flags,
/third_party/python/Python/
Dceval.c2636 if (co->co_flags & CO_ASYNC_GENERATOR) { in _PyEval_EvalFrameDefault()
3974 if (!(co->co_flags & (CO_COROUTINE | CO_ITERABLE_COROUTINE))) { in _PyEval_EvalFrameDefault()
4667 assert((co->co_flags & CO_VARARGS) == 0); in too_many_positional()
4800 if (co->co_flags & CO_VARKEYWORDS) { in _PyEval_MakeFrameVector()
4805 if (co->co_flags & CO_VARARGS) { in _PyEval_MakeFrameVector()
4829 if (co->co_flags & CO_VARARGS) { in _PyEval_MakeFrameVector()
4910 if ((argcount > co->co_argcount) && !(co->co_flags & CO_VARARGS)) { in _PyEval_MakeFrameVector()
5025 …assert (((PyCodeObject *)con->fc_code)->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERAT… in make_coro()
5027 int is_coro = ((PyCodeObject *)con->fc_code)->co_flags & CO_COROUTINE; in make_coro()
5037 } else if (((PyCodeObject *)con->fc_code)->co_flags & CO_ASYNC_GENERATOR) { in make_coro()
[all …]
Dpythonrun.c1352 flags->cf_flags |= (co->co_flags & PyCF_MASK); in run_pyc_file()
Dmarshal.c517 w_long(co->co_flags, p); in w_complex_object()
/third_party/python/Lib/unittest/
Dmock.py2187 code_mock.co_flags = inspect.CO_COROUTINE
2942 code_mock.co_flags = inspect.CO_ITERABLE_COROUTINE
/third_party/python/Misc/NEWS.d/
D3.6.4rc1.rst7 co_flags.CO_NOFREE is now always set correctly by the code object
/third_party/python/Doc/library/
Dinspect.rst168 | | co_flags | bitmap of ``CO_*`` flags, |
1424 Python code objects have a ``co_flags`` attribute, which is a bitmap of

12