[issue19624] Switch constants in the errno module to IntEnum

Marc-Andre Lemburg report at bugs.python.org
Thu Nov 28 15:48:57 CET 2013


Marc-Andre Lemburg added the comment:

I'm not sure whether changing the errno module to use enums would be conceptually correct:

enums declare a fixed set of permitted values, but errno values can be any integer, are platform dependent and are sometimes not unique (e.g. EWOULDBLOCK = EAGAIN, or the various Windows WSA errno values which map to similar integers as the Unix ones).

----------
nosy: +lemburg

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


More information about the Python-bugs-list mailing list