New submission from Alexander Belopolsky:
In Python 3.3.0 and 3.2.3:
from inspect import *
def f(a,b):pass
...
formatargspec(getargspec(f))
Traceback (most recent call last):
File stdin, line 1, in module
File
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/inspect.py,
STINNER Victor added the comment:
It looks like a typo in your code. You should use instead:
formatargspec(*getargspec(f))
Or better:
formatargspec(*getfullargspec(f))
Try with:
def f(a: int, b: float): pass
--
nosy: +haypo
___
Python tracker
Alexander Belopolsky added the comment:
My bad, but I think documentation can be improved by adding an example.
--
assignee: - docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python
type: behavior - enhancement
versions: -Python 3.2, Python 3.3