This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky
Date 2012-10-15.23:19:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350343185.48.0.60485336671.issue16243@psf.upfronthosting.co.za>
In-reply-to
Content
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)'
History
Date User Action Args
2012-10-15 23:19:45belopolskysetrecipients: + belopolsky
2012-10-15 23:19:45belopolskysetmessageid: <1350343185.48.0.60485336671.issue16243@psf.upfronthosting.co.za>
2012-10-15 23:19:45belopolskylinkissue16243 messages
2012-10-15 23:19:45belopolskycreate