mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
bpo-44530: Document the new CodeObject.co_qualname attribute (GH-27052)
This commit is contained in:
parent
2f180ce2cb
commit
8363c53369
2 changed files with 6 additions and 0 deletions
|
|
@ -187,6 +187,10 @@ attributes:
|
||||||
| | co_name | name with which this code |
|
| | co_name | name with which this code |
|
||||||
| | | object was defined |
|
| | | object was defined |
|
||||||
+-----------+-------------------+---------------------------+
|
+-----------+-------------------+---------------------------+
|
||||||
|
| | co_qualname | fully-qualified name with |
|
||||||
|
| | | which this code object |
|
||||||
|
| | | was defined |
|
||||||
|
+-----------+-------------------+---------------------------+
|
||||||
| | co_names | tuple of names of local |
|
| | co_names | tuple of names of local |
|
||||||
| | | variables |
|
| | | variables |
|
||||||
+-----------+-------------------+---------------------------+
|
+-----------+-------------------+---------------------------+
|
||||||
|
|
|
||||||
|
|
@ -969,8 +969,10 @@ Internal types
|
||||||
single: co_varnames (code object attribute)
|
single: co_varnames (code object attribute)
|
||||||
single: co_cellvars (code object attribute)
|
single: co_cellvars (code object attribute)
|
||||||
single: co_freevars (code object attribute)
|
single: co_freevars (code object attribute)
|
||||||
|
single: co_qualname (code object attribute)
|
||||||
|
|
||||||
Special read-only attributes: :attr:`co_name` gives the function name;
|
Special read-only attributes: :attr:`co_name` gives the function name;
|
||||||
|
:attr:`co_qualname` gives the fully qualified function name;
|
||||||
:attr:`co_argcount` is the total number of positional arguments
|
:attr:`co_argcount` is the total number of positional arguments
|
||||||
(including positional-only arguments and arguments with default values);
|
(including positional-only arguments and arguments with default values);
|
||||||
:attr:`co_posonlyargcount` is the number of positional-only arguments
|
:attr:`co_posonlyargcount` is the number of positional-only arguments
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue