New submission from Serhiy Storchaka:
The repr of standard exceptions usually looks as exception constructor used for
creating that exception. But the repr of ImportError misses keyword arguments
name and path.
>>> ImportError('test', name='somename', path='somepath')
ImportError('test',)
Proposed patch make the repr of ImportError containing keyword arguments.
>>> ImportError('test', name='somename', path='somepath')
ImportError('test', name='somename', path='somepath')
I don't know how to classify this issue and whether the patch should be
backported.
----------
components: Interpreter Core
messages: 291200
nosy: brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: repr() of ImportError misses keyword arguments name and path
versions: Python 3.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue29999>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com