[Python-checkins] [3.10] bpo-45492: Corrected documentation for co_names in inspect library doc (GH-31456). (GH-31645)
iritkatriel
webhook-mailer at python.org
Wed Mar 2 14:37:30 EST 2022
https://github.com/python/cpython/commit/eb65e46b9b28103767c115ccf71a97a9f4237d4c
commit: eb65e46b9b28103767c115ccf71a97a9f4237d4c
branch: 3.10
author: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2022-03-02T19:37:17Z
summary:
[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 at users.noreply.github.com>
Co-authored-by: slateny <46876382+slateny at users.noreply.github.com>
files:
M Doc/library/inspect.rst
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index ed33cbb8a61ab..d7ef2adf7281b 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 |
+-----------+-------------------+---------------------------+
More information about the Python-checkins
mailing list