[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
participants (8)
-
Alex
-
Alex Vig
-
Cheryl Sabella
-
laike9m
-
Marco Buttu
-
Serhiy Storchaka
-
Utkarsh Gupta
-
Xavier Morel