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 serhiy.storchaka
Recipients brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
Date 2017-04-05.22:29:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491431351.79.0.0513888316468.issue29999@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-04-05 22:29:11serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, ncoghlan, eric.snow
2017-04-05 22:29:11serhiy.storchakasetmessageid: <1491431351.79.0.0513888316468.issue29999@psf.upfronthosting.co.za>
2017-04-05 22:29:11serhiy.storchakalinkissue29999 messages
2017-04-05 22:29:11serhiy.storchakacreate