[issue21578] Misleading error message when ImportError called with invalid keyword args
Eric Snow
report at bugs.python.org
Mon May 26 06:31:35 CEST 2014
New submission from Eric Snow:
>>> ImportError(spam='spam')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: ImportError does not take keyword arguments
However, it *does* take keyword arguments:
>>> ImportError(name='spam', path='spam')
ImportError()
----------
components: Interpreter Core
messages: 219125
nosy: brett.cannon, eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: Misleading error message when ImportError called with invalid keyword args
type: enhancement
versions: Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21578>
_______________________________________
More information about the Python-bugs-list
mailing list