summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslateny <46876382+slateny@users.noreply.github.com>2022-03-02 19:03:38 (GMT)
committerGitHub <noreply@github.com>2022-03-02 19:03:38 (GMT)
commit3257d49d236e5f3453fe9d2fd8338bcdfe9756b7 (patch)
tree522dd9e1e0471f7a4a4c0c89190afb4ecd88e373
parentb6b711a1aa233001c1874af1d920e459b6bf962c (diff)
downloadcpython-3257d49d236e5f3453fe9d2fd8338bcdfe9756b7.zip
cpython-3257d49d236e5f3453fe9d2fd8338bcdfe9756b7.tar.gz
cpython-3257d49d236e5f3453fe9d2fd8338bcdfe9756b7.tar.bz2
bpo-45492: Corrected documentation for co_names in inspect library doc (GH-31456)
-rw-r--r--Doc/library/inspect.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 7a6dc9c..8ee2c07 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -191,8 +191,9 @@ attributes:
| | | 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 |
+-----------+-------------------+---------------------------+