From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Wed, 2 Mar 2022 19:37:17 +0000 (+0000) Subject: [3.10] bpo-45492: Corrected documentation for co_names in inspect library doc (GH... X-Git-Tag: v3.10.3~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb65e46b9b28103767c115ccf71a97a9f4237d4c;p=thirdparty%2FPython%2Fcpython.git [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> --- diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index ed33cbb8a61a..d7ef2adf7281 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 | +-----------+-------------------+---------------------------+