mirror of
https://github.com/python/cpython.git
synced 2025-11-19 02:39:15 +00:00
bpo-37122: Make co->co_argcount represent the total number of positonal arguments in the code object (GH-13726)
This commit is contained in:
parent
059b9ea5ac
commit
cd74e66a8c
14 changed files with 74 additions and 88 deletions
|
|
@ -0,0 +1,5 @@
|
|||
Make the *co_argcount* attribute of code objects represent the total number
|
||||
of positional arguments (including positional-only arguments). The value of
|
||||
*co_posonlyargcount* can be used to distinguish which arguments are
|
||||
positional only, and the difference (*co_argcount* - *co_posonlyargcount*)
|
||||
is the number of positional-or-keyword arguments. Patch by Pablo Galindo.
|
||||
Loading…
Add table
Add a link
Reference in a new issue