[docs] [issue23391] Documentation of EnvironmentError (OSError) arguments disappeared

Serhiy Storchaka report at bugs.python.org
Thu Jun 11 09:36:50 CEST 2015


Serhiy Storchaka added the comment:

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')

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23391>
_______________________________________


More information about the docs mailing list