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 <rep...@bugs.python.org>
<http://bugs.python.org/issue19624>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to