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