[issue29999] repr() of ImportError misses keyword arguments name and path

2019-01-30 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I think the issue steems from the more general #27015 for which a PR is ready that fixes the repr not only for ImportError but all other BaseException subclasses that override __init__. -- keywords: +patch nosy: +remi.lapeyre pull_requests: +11554

[issue29999] repr() of ImportError misses keyword arguments name and path

2017-04-24 Thread Berker Peksag
Berker Peksag added the comment: Including 'path' may make the repr less readable in some cases. +1 for 'name', though. -- nosy: +berker.peksag ___ Python tracker

[issue29999] repr() of ImportError misses keyword arguments name and path

2017-04-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch also changes the repr of BaseException with a single argument. It no longer contains a trailing comma. -- assignee: -> serhiy.storchaka ___ Python tracker

[issue29999] repr() of ImportError misses keyword arguments name and path

2017-04-06 Thread Brett Cannon
Brett Cannon added the comment: I consider it an enhancement, especially if someone was slopping with their tests and explicitly checks the repr of ImportError. -- type: -> enhancement ___ Python tracker

[issue29999] repr() of ImportError misses keyword arguments name and path

2017-04-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1179 ___ Python tracker ___ ___

[issue29999] repr() of ImportError misses keyword arguments name and path

2017-04-05 Thread Serhiy Storchaka
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',)