[issue19624] Switch constants in the errno module to IntEnum

STINNER Victor report at bugs.python.org
Tue Nov 26 16:45:39 CET 2013


STINNER Victor added the comment:

> This is not so easy issue because the errno module is not pure Python module. ;)

An option is to rename the C errno module to _errno and leave it unchanged, and provide a Python errno module which enum API.

Then slowly errno module should be used instead of _errno.

Using enum for errno should not slow down Python startup time.

----------

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


More information about the Python-bugs-list mailing list