Home
last modified time | relevance | path

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

/third_party/python/Lib/
H A Dtypes.py256 co_flags = func.__code__.co_flags
260 if co_flags & 0x180:
265 if co_flags & 0x20:
269 func.__code__ = co.replace(co_flags=co.co_flags | 0x100)
283 coro.__class__ is GeneratorType and coro.gi_code.co_flags & 0x100):
H A 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:
H A Dcodeop.py120 if codeob.co_flags & feature.compiler_flag:
H A Dinspect.py400 return bool(f.__code__.co_flags & flag)
453 bool(object.gi_code.co_flags & CO_ITERABLE_COROUTINE) or
491 co_flags bitmap: 1=optimized | 2=newlocals | 4=*arg | 8=**arg
1324 if co.co_flags & CO_VARARGS:
1328 if co.co_flags & CO_VARKEYWORDS:
2394 if func_code.co_flags & CO_VARARGS:
2411 if func_code.co_flags & CO_VARKEYWORDS:
2413 if func_code.co_flags & CO_VARARGS:
H A Ddis.py125 # turn the co_flags field into a human readable list.
203 lines.append("Flags: %s" % pretty_flags(co.co_flags))
H A Dpdb.py1219 if co.co_flags & inspect.CO_VARARGS: n = n+1
1220 if co.co_flags & inspect.CO_VARKEYWORDS: n = n+1
/third_party/python/Objects/clinic/
H A Dcodeobject.c.h162 " co_flags=-1, co_firstlineno=-1, co_code=None, co_consts=None,\n"
176 int co_nlocals, int co_stacksize, int co_flags,
189 static const char * const _keywords[] = {"co_argcount", "co_posonlyargcount", "co_kwonlyargcount", "co_nlocals", "co_stacksize", "co_flags", "co_firstlineno", "co_code", "co_consts", "co_names", "co_varnames", "co_freevars", "co_cellvars", "co_filename", "co_name", "co_qualname", "co_linetable", "co_exceptiontable", NULL}; in code_replace()
198 int co_flags = self->co_flags; in code_replace() local
265 co_flags = _PyLong_AsInt(args[5]); in code_replace()
266 if (co_flags == -1 && PyErr_Occurred()) { in code_replace()
397 return_value = code_replace_impl(self, co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nlocals, co_stacksize, co_flags, co_firstlineno, co_code, co_consts, co_names, co_varnames, co_freevars, co_cellvars, co_filename, co_name, co_qualname, co_linetable, co_exceptiontable); in code_replace()
/third_party/node/tools/inspector_protocol/jinja2/
H A Ddebug.py273 code.co_flags, code.co_code, code.co_consts,
280 code.co_flags, code.co_code, code.co_consts,
/third_party/python/Objects/
H A Dcodeobject.c302 co->co_flags = con->flags; in init_code()
1691 eq = co->co_flags == cp->co_flags; in code_richcompare()
1781 co->co_flags; in code_hash()
1794 {"co_flags", T_INT, OFF(co_flags), READONLY},
1886 co_flags: int(c_default="self->co_flags") = -1
1906 int co_nlocals, int co_stacksize, int co_flags, in code_replace_impl()
1928 CHECK_INT_ARG(co_flags); in code_replace_impl()
1904 code_replace_impl(PyCodeObject *self, int co_argcount, int co_posonlyargcount, int co_kwonlyargcount, int co_nlocals, int co_stacksize, int co_flags, int co_firstlineno, PyBytesObject *co_code, PyObject *co_consts, PyObject *co_names, PyObject *co_varnames, PyObject *co_freevars, PyObject *co_cellvars, PyObject *co_filename, PyObject *co_name, PyObject *co_qualname, PyBytesObject *co_linetable, PyBytesObject *co_exceptiontable) code_replace_impl() argument
[all...]
H A Dframeobject.c296 if (code_obj->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR)) in mark_stacks()
1142 if (kind & CO_FAST_FREE && !(co->co_flags & CO_OPTIMIZED)) { in _PyFrame_FastToLocalsWithError()
1241 if (kind & CO_FAST_FREE && !(co->co_flags & CO_OPTIMIZED)) { in _PyFrame_LocalsToFast()
H A Dgenobject.c90 ((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE && in _PyGen_Finalize()
140 if (((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE) { in gen_dealloc()
921 int coro_flags = ((PyCodeObject *)func->func_code)->co_flags & in _Py_MakeCoro()
1026 if (code->co_flags & CO_ITERABLE_COROUTINE) { in gen_is_coroutine()
H A Dcall.c392 if (((PyCodeObject *)f->func_code)->co_flags & CO_OPTIMIZED) { in _PyFunction_Vectorcall()
/third_party/python/Lib/test/
H A Dtest_code.py229 co.co_flags,
268 ("co_flags", code.co_flags | inspect.CO_COROUTINE),
306 co.co_flags,
H A Dtest_types.py1867 foo_flags = foo.__code__.co_flags
1870 self.assertEqual(foo.__code__.co_flags, foo_flags)
1879 self.assertEqual(coro.cr_code.co_flags, foo_flags)
2122 self.assertTrue(gen.__code__.co_flags & inspect.CO_ITERABLE_COROUTINE)
2123 self.assertFalse(gen.__code__.co_flags & inspect.CO_COROUTINE)
2126 self.assertTrue(g.gi_code.co_flags & inspect.CO_ITERABLE_COROUTINE)
2127 self.assertFalse(g.gi_code.co_flags & inspect.CO_COROUTINE)
H A Dtest_coroutines.py534 self.assertTrue(bool(foo.__code__.co_flags & inspect.CO_COROUTINE))
535 self.assertFalse(bool(foo.__code__.co_flags & inspect.CO_GENERATOR))
536 self.assertTrue(bool(f.cr_code.co_flags & inspect.CO_COROUTINE))
537 self.assertFalse(bool(f.cr_code.co_flags & inspect.CO_GENERATOR))
543 self.assertFalse(bool(bar.__code__.co_flags & inspect.CO_COROUTINE))
H A Dtest_grammar.py1948 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE))
1959 self.assertTrue(bool(test2.__code__.co_flags & inspect.CO_COROUTINE))
H A Dtest_builtin.py391 self.assertNotEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,
441 self.assertEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,
/third_party/python/Include/cpython/
H A Dcode.h47 * - co_flags \
64 int co_flags; /* CO_..., see below */ \
105 /* Masks for co_flags above */
/third_party/jinja2/
H A Ddebug.py129 code.co_flags,
/third_party/python/Tools/scripts/
H A Dumarshal.py281 retval.co_flags = self.r_long()
/third_party/python/Python/
H A Dceval.c2634 assert(frame->f_code->co_flags & CO_ASYNC_GENERATOR);
4309 if (!(frame->f_code->co_flags & (CO_COROUTINE | CO_ITERABLE_COROUTINE))) {
4744 int code_flags = ((PyCodeObject*)PyFunction_GET_CODE(function))->co_flags;
5957 assert((co->co_flags & CO_VARARGS) == 0);
6147 if (co->co_flags & CO_VARKEYWORDS) {
6153 if (co->co_flags & CO_VARARGS) {
6178 if (co->co_flags & CO_VARARGS) {
6280 if ((argcount > co->co_argcount) && !(co->co_flags & CO_VARARGS)) {
7215 const int codeflags = current_frame->f_code->co_flags;
H A Dmarshal.c563 w_long(co->co_flags, p); in w_complex_object()
H A Dspecialize.c1176 int flags = code->co_flags; in function_kind()
H A Dpythonrun.c1775 flags->cf_flags |= (co->co_flags & PyCF_MASK); in run_pyc_file()
/third_party/python/Lib/unittest/
H A Dmock.py2210 code_mock.co_flags = (
2982 code_mock.co_flags = inspect.CO_ITERABLE_COROUTINE

Completed in 65 milliseconds