]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-30951: Correct co_names docstring in inspect module (GH-2743)
authorAlex Vig <jalexvig@gmail.com>
Fri, 24 Sep 2021 10:05:34 +0000 (06:05 -0400)
committerGitHub <noreply@github.com>
Fri, 24 Sep 2021 10:05:34 +0000 (12:05 +0200)
Lib/inspect.py

index a5f0352fc722e0145682bbfabffe411339417c98..1b2fc918c8131381f5662fe47af924c5a7131dc2 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"""