Searched refs:co_posonlyargcount (Results 1 – 13 of 13) sorted by relevance
/third_party/python/Objects/clinic/ |
D | codeobject.c.h | 157 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/ |
D | codeobject.c | 238 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/ |
D | code.h | 21 int co_posonlyargcount; /* #positional only arguments */ member
|
/third_party/python/Lib/test/ |
D | test_positional_only_arg.py | 104 self.assertEqual(3, f.__code__.co_posonlyargcount) 111 self.assertEqual(3, f.__code__.co_posonlyargcount)
|
D | test_code.py | 217 co.co_posonlyargcount,
|
/third_party/python/Lib/ |
D | dis.py | 160 lines.append("Positional-only arguments: %s" % co.co_posonlyargcount)
|
D | inspect.py | 2299 posonly_count = func_code.co_posonlyargcount
|
/third_party/python/Python/ |
D | ceval.c | 4722 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()
|
D | marshal.c | 513 w_long(co->co_posonlyargcount, p); in w_complex_object()
|
/third_party/python/Misc/NEWS.d/ |
D | 3.8.0b1.rst | 60 *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/ |
D | inspect.rst | 180 | | co_posonlyargcount| number of positional only |
|
/third_party/python/Doc/reference/ |
D | datamodel.rst | 958 single: co_posonlyargcount (code object attribute) 977 :attr:`co_posonlyargcount` is the number of positional-only arguments
|
/third_party/python/Doc/whatsnew/ |
D | 3.8.rst | 471 >>> mean.__code__ = mean.__code__.replace(co_posonlyargcount=1)
|