[Python-checkins] r45925 - in python/trunk: Lib/tempfile.py Lib/test/test_os.py Misc/NEWS Modules/posixmodule.c
"Martin v. Löwis"
martin at v.loewis.de
Sun May 7 09:00:28 CEST 2006
M.-A. Lemburg wrote:
>> + except WindowsError, e:
>> + if e.errno == 183: # ERROR_ALREADY_EXISTS
>> + continue # try again
>> + raise
>> except OSError, e:
>> if e.errno == _errno.EEXIST:
>> continue # try again
>
> Rather than adding new cases for the changed error codes,
> wouldn't it be better and more backwards compatible to
> add aliases to the errno module for e.g. ERROR_ALREADY_EXISTS ?!
It might be better for some reason, but I cannot see how
it would be more backwards compatible to define symbolic
constant ERROR_ALREADY_EXISTS, with the value 183.
In what sense would the backwards compatibility be improved ?!
Regards,
Martin
More information about the Python-checkins
mailing list