Georg Brandl ge...@python.org added the comment:
Fixed both in r85533. Thanks!
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9683
___
Andreas Stührk andy-pyt...@hammerhartes.de added the comment:
The documentation about `getargvalues()` and the docstrings of `getargspec()`
and friends still mention nested lists for args. Should I update the patch or
should I create a new issue?
--
Changes by Georg Brandl ge...@python.org:
--
assignee: - georg.brandl
nosy: +georg.brandl
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9683
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Indeed, with 3.1:
def f(x, y): pass
...
inspect.formatargspec(inspect.getargspec(f))
TypeError: object of type 'map' has no len()
--
nosy: +amaury.forgeotdarc
type: - behavior
___
Python
Andreas Stührk andy-pyt...@hammerhartes.de added the comment:
The correct call is more something like
``inspect.formatargspec(*inspect.getargspec(f))``, which should work for all
(Python) functions in Python 3. In Python 2, tuple unpacking was represented
using a nested list for the
Changes by Andreas Stührk andy-pyt...@hammerhartes.de:
--
title: Dead code in pyk inspect module - Dead code in py3k inspect module
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9683
___