]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] bpo-45492: Corrected documentation for co_names in inspect library doc (GH...
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Wed, 2 Mar 2022 19:37:17 +0000 (19:37 +0000)
committerGitHub <noreply@github.com>
Wed, 2 Mar 2022 19:37:17 +0000 (19:37 +0000)
(cherry picked from commit 3257d49d236e5f3453fe9d2fd8338bcdfe9756b7)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
Doc/library/inspect.rst

index ed33cbb8a61ab222c2de157d123bac76df268dae..d7ef2adf7281b614d8d1819fbc2ad9fb780ae92b 100644 (file)
@@ -187,8 +187,9 @@ attributes:
 |           | co_name           | name with which this code |
 |           |                   | object was defined        |
 +-----------+-------------------+---------------------------+
-|           | co_names          | tuple of names of local   |
-|           |                   | variables                 |
+|           | co_names          | tuple of names other      |
+|           |                   | than arguments and        |
+|           |                   | function locals           |
 +-----------+-------------------+---------------------------+
 |           | co_nlocals        | number of local variables |
 +-----------+-------------------+---------------------------+