This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: inspect.getargvalues return type not ArgInfo
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, castironpi
Priority: normal Keywords:

Created on 2008-10-09 18:44 by castironpi, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg74595 - (view) Author: Aaron Brady (castironpi) Date: 2008-10-09 18:44
Python 2.6 (r26:66721, Oct  2 2008, 11:35:03) [MSC v.1500 32 bit
(Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import inspect
>>> type( inspect.getargvalues( inspect.currentframe() ) )

<type 'tuple'>

Docs say:

inspect.getargvalues(frame)
...
Changed in version 2.6: Returns a named tuple ArgInfo(args, varargs,
keywords, locals).

The code defines an ArgInfo type, but doesn't instantiate it in the
return, as shown here:

    return args, varargs, varkw, frame.f_locals
msg75053 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-10-21 22:18
Thanks for the report. Fixed in r66995.
History
Date User Action Args
2022-04-11 14:56:40adminsetgithub: 48342
2008-10-21 22:18:45benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg75053
nosy: + benjamin.peterson
2008-10-09 18:44:11castironpicreate