Antoine Pitrou <pit...@free.fr> added the comment:

(also, OSError will automatically convert to more specific subclasses for some 
errnos, see PEP 3151:

>>> raise OSError(errno.ENOENT, "foobar")                                       
>>>                                                                             
>>>            
Traceback (most recent call last):
  File "<ipython-input-3-e08f9c9a179c>", line 1, in <module>
    raise OSError(errno.ENOENT, "foobar")
FileNotFoundError: [Errno 2] foobar

)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35813>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to