From 17cb7271514d521259b8254ddc612440c0869973 Mon Sep 17 00:00:00 2001 From: Alex Vig Date: Mon, 17 Jul 2017 13:55:53 -0400 Subject: [PATCH] Correct co_names documentation in inspect module --- Lib/inspect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/inspect.py b/Lib/inspect.py index 9a843d6420e2e0..a44e8eb3ceb25e 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -268,7 +268,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 of global variables used in the bytecode co_nlocals number of local variables co_stacksize virtual machine stack space required co_varnames tuple of names of arguments and local variables"""