[issue30951] Documentation error in inspect module
New submission from Alex Vig:
The documentation for co_names in the inspect module is:
"tuple of names of local variables"
Local variable names are however in co_varnames while co_names contains global variable names. This description should read:
"tuple of names of global variables"
Relevant StackOverflow post here:
https://stackoverflow.com/q/45147260/1953800
----------
assignee: docs@python
components: Documentation
messages: 298545
nosy: Alex Vig, docs@python
priority: normal
severity: normal
status: open
title: Documentation error in inspect module
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7
_______________________________________
Python tracker
Changes by Alex
Changes by Alex
Marco Buttu added the comment:
Or maybe: "tuple of names of global variables used in the bytecode"
----------
nosy: +marco.buttu
_______________________________________
Python tracker
Change by Utkarsh Gupta
Change by Utkarsh Gupta
Serhiy Storchaka
Utkarsh Gupta
Change by Cheryl Sabella
Change by laike9m
Xavier Morel
participants (8)
-
Alex
-
Alex Vig
-
Cheryl Sabella
-
laike9m
-
Marco Buttu
-
Serhiy Storchaka
-
Utkarsh Gupta
-
Xavier Morel