Message245158
Good point Serhiy about returning subclasses. I’ll see about making that more explicit if I can’t find it already documented somewhere.
Regarding the number of arguments, I resisted documenting what happens to extra arguments since the behaviour has changed over time, and it doesn’t seem that it would be very useful. IMO it would be better to say passing extra arguments is not supported. But if others disagree, I can have a go at documenting the existing and/or past behaviour.
Python 3.3.3 under Wine:
>>> OSError(None, "Not found", "file", 3).args
(2, 'Not found', 'file', 3)
>>> OSError(ENOENT, "Not found", "file", None).args
(2, 'Not found', 'file', None)
Python 3.6.0a0 under Linux:
>>> OSError(ENOENT, "Not found", "file", None).args
(2, 'Not found') |
|
Date |
User |
Action |
Args |
2015-06-11 08:08:06 | martin.panter | set | recipients:
+ martin.panter, pitrou, r.david.murray, docs@python, serhiy.storchaka |
2015-06-11 08:08:06 | martin.panter | set | messageid: <1434010086.18.0.472046505737.issue23391@psf.upfronthosting.co.za> |
2015-06-11 08:08:06 | martin.panter | link | issue23391 messages |
2015-06-11 08:08:05 | martin.panter | create | |
|