Skip to content

Commit 91a5ba1

Browse files
bpo-30951: Correct co_names docstring in inspect module (GH-2743) (GH-28544)
(cherry picked from commit 3f8b23f) Co-authored-by: Alex Vig <[email protected]>
1 parent d672dd3 commit 91a5ba1

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
@@ -277,7 +277,7 @@ def iscode(object):
277277
co_kwonlyargcount number of keyword only arguments (not including ** arg)
278278
co_lnotab encoded mapping of line numbers to bytecode indices
279279
co_name name with which this code object was defined
280-
co_names tuple of names of local variables
280+
co_names tuple of names other than arguments and function locals
281281
co_nlocals number of local variables
282282
co_stacksize virtual machine stack space required
283283
co_varnames tuple of names of arguments and local variables"""

0 commit comments

Comments
 (0)