[docs] [issue23391] Documentation of EnvironmentError (OSError) arguments disappeared
Martin Panter
report at bugs.python.org
Sun Feb 8 03:45:29 CET 2015
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 <report at bugs.python.org>
<http://bugs.python.org/issue23391>
_______________________________________
More information about the docs
mailing list