Message245157
It should be documented (if still not) that OSError() constructor can return an instance of OSError subclass, depending on errno value.
>>> OSError(errno.ENOENT, 'no such file')
FileNotFoundError(2, 'no such file') |
|
Date |
User |
Action |
Args |
2015-06-11 07:36:50 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, r.david.murray, docs@python, martin.panter |
2015-06-11 07:36:50 | serhiy.storchaka | set | messageid: <1434008210.74.0.705479189976.issue23391@psf.upfronthosting.co.za> |
2015-06-11 07:36:50 | serhiy.storchaka | link | issue23391 messages |
2015-06-11 07:36:50 | serhiy.storchaka | create | |
|