diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-03-02 19:37:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-02 19:37:17 (GMT) |
commit | eb65e46b9b28103767c115ccf71a97a9f4237d4c (patch) | |
tree | aeb18c337e4fe1e0aef7ec83f3c4fb937e937e28 /Doc/library | |
parent | 93264452d952d9ba604bacf2947c2df5dd477931 (diff) | |
download | cpython-eb65e46b9b28103767c115ccf71a97a9f4237d4c.zip cpython-eb65e46b9b28103767c115ccf71a97a9f4237d4c.tar.gz cpython-eb65e46b9b28103767c115ccf71a97a9f4237d4c.tar.bz2 |
[3.10] bpo-45492: Corrected documentation for co_names in inspect library doc (GH-31456). (GH-31645)
(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>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/inspect.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index ed33cbb..d7ef2ad 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -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 | +-----------+-------------------+---------------------------+ |