It sould be in Python-Ideas: add keyword argument support for OSError and subclasses with suitable default values. I.e.

>>> OSError(errno=errno.ENOENT)
FileNotFoundError(2, 'No such file or directory')
>>> FileNotFoundError(filename='qwerty')
FileNotFoundError(2, 'No such file or directory')
>>> FileNotFoundError(strerr='Bad file')
FileNotFoundError(2, 'Bad file')


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to