Martin Panter added the comment:

Here is a patch to redocument the constructor arguments. I am assuming that 
they were only removed by accident. The constructor arguments are already 
tested in ExceptionTests.testAttributes() at Lib/test/test_exceptions.py:248.

I did not restore the bit about more than three arguments being reflected in 
the “args” attribute, since this is not the current behaviour, and does not 
seem very important:

>>> OSError(1, 2, 3, 4).args
(1, 2)

----------
keywords: +patch
Added file: http://bugs.python.org/file38037/os-error-args.patch

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

Reply via email to