Searched refs:co_posonlyargcount (Results 1 - 11 of 11) sorted by relevance
/third_party/python/Objects/clinic/ |
H A D | codeobject.c.h | 160 "replace($self, /, *, co_argcount=-1, co_posonlyargcount=-1,\n" 175 int co_posonlyargcount, int co_kwonlyargcount, 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() 194 int co_posonlyargcount = self->co_posonlyargcount; in code_replace() local 229 co_posonlyargcount = _PyLong_AsInt(args[1]); in code_replace() 230 if (co_posonlyargcount == -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/python/Objects/ |
H A D | codeobject.c | 319 co->co_posonlyargcount = con->posonlyargcount; in init_code() 1687 eq = co->co_posonlyargcount == cp->co_posonlyargcount; in code_richcompare() 1780 co->co_argcount ^ co->co_posonlyargcount ^ co->co_kwonlyargcount ^ in code_hash() 1791 {"co_posonlyargcount", T_INT, OFF(co_posonlyargcount), READONLY}, 1882 co_posonlyargcount: int(c_default="self->co_posonlyargcount") = -1 1905 int co_posonlyargcount, int co_kwonlyargcount, in code_replace_impl() 1924 CHECK_INT_ARG(co_posonlyargcount); 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...] |
/third_party/python/Include/cpython/ |
H A D | code.h | 43 * - co_posonlyargcount \ 70 int co_posonlyargcount; /* #positional only arguments */ \
|
/third_party/python/Lib/test/ |
H A D | test_positional_only_arg.py | 104 self.assertEqual(3, f.__code__.co_posonlyargcount) 111 self.assertEqual(3, f.__code__.co_posonlyargcount)
|
H A D | test_code.py | 225 co.co_posonlyargcount, 264 ("co_posonlyargcount", 0), 301 co.co_posonlyargcount,
|
/third_party/python/Tools/scripts/ |
H A D | umarshal.py | 278 retval.co_posonlyargcount = self.r_long()
|
/third_party/python/Lib/ |
H A D | dis.py | 199 lines.append("Positional-only arguments: %s" % co.co_posonlyargcount)
|
H A D | inspect.py | 495 co_posonlyargcount number of positional only arguments 2356 posonly_count = func_code.co_posonlyargcount
|
/third_party/python/Python/ |
H A D | ceval.c | 6014 for(int k=0; k < co->co_posonlyargcount; k++){ 6219 for (j = co->co_posonlyargcount; j < total_args; j++) { 6227 for (j = co->co_posonlyargcount; j < total_args; j++) { 6241 if (co->co_posonlyargcount
|
H A D | marshal.c | 560 w_long(co->co_posonlyargcount, p); in w_complex_object()
|
/third_party/python/Lib/unittest/ |
H A D | mock.py | 2217 code_mock.co_posonlyargcount = 0
|
Completed in 50 milliseconds