[New-bugs-announce] [issue16243] Regression in inspect module

Alexander Belopolsky report at bugs.python.org
Tue Oct 16 01:19:45 CEST 2012


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", line 905, in formatargspec
    spec = formatargandannotation(arg)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/inspect.py", line 898, in formatargandannotation
    if arg in annotations:
TypeError: unhashable type: 'list'

No such error in 2.7.1:

>>> formatargspec(getargspec(f))
'((a, b), None, None, None)'

----------
components: Library (Lib)
messages: 173003
nosy: belopolsky
priority: normal
severity: normal
status: open
title: Regression in inspect module
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16243>
_______________________________________


More information about the New-bugs-announce mailing list