]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-30951: Correct co_names docstring in inspect module (GH-2743) (GH-28543)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 Sep 2021 10:38:55 +0000 (03:38 -0700)
committerPablo Galindo <pablogsal@gmail.com>
Wed, 29 Sep 2021 11:29:57 +0000 (12:29 +0100)
(cherry picked from commit 3f8b23f8ddab75d9b77a3997d54e663187e12cc8)

Co-authored-by: Alex Vig <jalexvig@gmail.com>
Lib/inspect.py

index 7aedcf1a941b3fbe0ce5f25f6c44e451dde3076c..2374e59f0b402299ccf48107238f6c7d0b5255d7 100644 (file)
@@ -395,7 +395,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"""