[issue19624] Switch constants in the errno module to IntEnum

Antoine Pitrou report at bugs.python.org
Thu Nov 28 15:39:26 CET 2013


Antoine Pitrou added the comment:

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

I agree it sounds reasonable.

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

enum imports OrderedDict from collections, which imports other modules...

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list