Home
last modified time | relevance | path

Searched refs:co_posonlyargcount (Results 1 – 13 of 13) sorted by relevance

/third_party/python/Objects/clinic/
Dcodeobject.c.h157 int co_posonlyargcount, int co_kwonlyargcount,
174 int co_posonlyargcount = self->co_posonlyargcount; in code_replace() local
207 co_posonlyargcount = _PyLong_AsInt(args[1]); in code_replace()
208 if (co_posonlyargcount == -1 && PyErr_Occurred()) { in code_replace()
352 …return_value = code_replace_impl(self, co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nloc… in code_replace()
/third_party/python/Objects/
Dcodeobject.c238 co->co_posonlyargcount = posonlyargcount; in PyCode_NewWithPosOnlyArgs()
385 {"co_posonlyargcount", T_INT, OFF(co_posonlyargcount), READONLY},
724 int co_posonlyargcount, int co_kwonlyargcount, in code_replace_impl() argument
741 CHECK_INT_ARG(co_posonlyargcount); in code_replace_impl()
752 co_posonlyargcount, co_kwonlyargcount, co_nlocals, in code_replace_impl()
758 co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nlocals, in code_replace_impl()
934 eq = co->co_posonlyargcount == cp->co_posonlyargcount; in code_richcompare()
1008 co->co_argcount ^ co->co_posonlyargcount ^ co->co_kwonlyargcount ^ in code_hash()
/third_party/python/Include/cpython/
Dcode.h21 int co_posonlyargcount; /* #positional only arguments */ member
/third_party/python/Lib/test/
Dtest_positional_only_arg.py104 self.assertEqual(3, f.__code__.co_posonlyargcount)
111 self.assertEqual(3, f.__code__.co_posonlyargcount)
Dtest_code.py217 co.co_posonlyargcount,
/third_party/python/Lib/
Ddis.py160 lines.append("Positional-only arguments: %s" % co.co_posonlyargcount)
Dinspect.py2299 posonly_count = func_code.co_posonlyargcount
/third_party/python/Python/
Dceval.c4722 for(int k=0; k < co->co_posonlyargcount; k++){ in positional_only_passed_as_keyword()
4856 for (j = co->co_posonlyargcount; j < total_args; j++) { in _PyEval_MakeFrameVector()
4864 for (j = co->co_posonlyargcount; j < total_args; j++) { in _PyEval_MakeFrameVector()
4878 if (co->co_posonlyargcount in _PyEval_MakeFrameVector()
Dmarshal.c513 w_long(co->co_posonlyargcount, p); in w_complex_object()
/third_party/python/Misc/NEWS.d/
D3.8.0b1.rst60 *co_posonlyargcount* can be used to distinguish which arguments are
61 positional only, and the difference (*co_argcount* - *co_posonlyargcount*)
/third_party/python/Doc/library/
Dinspect.rst180 | | co_posonlyargcount| number of positional only |
/third_party/python/Doc/reference/
Ddatamodel.rst958 single: co_posonlyargcount (code object attribute)
977 :attr:`co_posonlyargcount` is the number of positional-only arguments
/third_party/python/Doc/whatsnew/
D3.8.rst471 >>> mean.__code__ = mean.__code__.replace(co_posonlyargcount=1)