[issue20517] Support errors with two filenames for errno exceptions

Serhiy Storchaka report at bugs.python.org
Sun Feb 16 21:22:05 CET 2014


Serhiy Storchaka added the comment:

I think it is worth to mention this in Doc/whatsnew/3.4.rst, as this is a little incompatible change.

Python 3.3:

>>> x = OSError(2, 'No such file or directory', 'foo', 0, 'bar')
>>> x.args
(2, 'No such file or directory', 'foo', 0, 'bar')

Python 3.4:

>>> x = OSError(2, 'No such file or directory', 'foo', 0, 'bar')
>>> x.args
(2, 'No such file or directory')

----------

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


More information about the Python-bugs-list mailing list