Skip to content

Commit 17cb727

Browse files
committed
Correct co_names documentation in inspect module
1 parent efa26bc commit 17cb727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/inspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def iscode(object):
268268
co_kwonlyargcount number of keyword only arguments (not including ** arg)
269269
co_lnotab encoded mapping of line numbers to bytecode indices
270270
co_name name with which this code object was defined
271-
co_names tuple of names of local variables
271+
co_names tuple of names of global variables used in the bytecode
272272
co_nlocals number of local variables
273273
co_stacksize virtual machine stack space required
274274
co_varnames tuple of names of arguments and local variables"""

0 commit comments

Comments
 (0)