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 <rep...@bugs.python.org> <http://bugs.python.org/issue16243> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com