Title: inspect.getargvalues return type not ArgInfo
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.6
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 2008-10-21 22:18 by benjamin.peterson. 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
Type "help", "copyright", "credits" or "license" for more information.
>>> import inspect
>>> type( inspect.getargvalues( inspect.currentframe() ) )

<type 'tuple'>

Docs say:

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.
Date User Action Args
2008-10-21 22:18:45benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg75053
nosy: + benjamin.peterson
2008-10-09 18:44:11castironpicreate