[New-bugs-announce] [issue4092] inspect.getargvalues return type not ArgInfo

Aaron Brady report at bugs.python.org
Thu Oct 9 20:44:12 CEST 2008

New submission from Aaron Brady <castironpi at gmail.com>:

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

components: Library (Lib)
messages: 74595
nosy: castironpi
severity: normal
status: open
title: inspect.getargvalues return type not ArgInfo
type: behavior
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list