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 docs@python, martin.panter, pitrou, r.david.murray, serhiy.storchaka
Date 2015-06-11.07:36:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434008210.74.0.705479189976.issue23391@psf.upfronthosting.co.za>
In-reply-to
Content
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')
History
Date User Action Args
2015-06-11 07:36:50serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, r.david.murray, docs@python, martin.panter
2015-06-11 07:36:50serhiy.storchakasetmessageid: <1434008210.74.0.705479189976.issue23391@psf.upfronthosting.co.za>
2015-06-11 07:36:50serhiy.storchakalinkissue23391 messages
2015-06-11 07:36:50serhiy.storchakacreate