[Python-checkins] bpo-30951: Correct co_names docstring in inspect module (GH-2743) (GH-28544)

ambv webhook-mailer at python.org
Fri Sep 24 06:38:55 EDT 2021


https://github.com/python/cpython/commit/91a5ba1bcb24c87a82c1417b1e5df57c89cbd3e0
commit: 91a5ba1bcb24c87a82c1417b1e5df57c89cbd3e0
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-09-24T12:38:39+02:00
summary:

bpo-30951: Correct co_names docstring in inspect module (GH-2743) (GH-28544)

(cherry picked from commit 3f8b23f8ddab75d9b77a3997d54e663187e12cc8)

Co-authored-by: Alex Vig <jalexvig at gmail.com>

files:
M Lib/inspect.py

diff --git a/Lib/inspect.py b/Lib/inspect.py
index 9d1d46dce9496..976cbb1a234e4 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -277,7 +277,7 @@ def iscode(object):
         co_kwonlyargcount   number of keyword only arguments (not including ** arg)
         co_lnotab           encoded mapping of line numbers to bytecode indices
         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
         co_stacksize        virtual machine stack space required
         co_varnames         tuple of names of arguments and local variables"""



More information about the Python-checkins mailing list