[issue19624] Switch constants in the errno module to IntEnum

2015-07-21 Thread Ethan Furman
Changes by Ethan Furman : -- resolution: -> rejected stage: needs patch -> status: open -> closed ___ Python tracker ___ ___ Python-

[issue19624] Switch constants in the errno module to IntEnum

2013-11-28 Thread Marc-Andre Lemburg
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,

[issue19624] Switch constants in the errno module to IntEnum

2013-11-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that even if errno is migrated to enum, OSErrors raised by the interpreter will still have a raw int errno... -- ___ Python tracker ___ __

[issue19624] Switch constants in the errno module to IntEnum

2013-11-28 Thread Antoine Pitrou
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 colle

[issue19624] Switch constants in the errno module to IntEnum

2013-11-26 Thread Eli Bendersky
Changes by Eli Bendersky : -- keywords: -easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue19624] Switch constants in the errno module to IntEnum

2013-11-26 Thread STINNER Victor
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

[issue19624] Switch constants in the errno module to IntEnum

2013-11-26 Thread STINNER Victor
STINNER Victor added the comment: I don't know if it's possible/convinient, but it would be nice to have a str() method using os.strerror(). Or maybe a method with a different name. -- nosy: +haypo ___ Python tracker

[issue19624] Switch constants in the errno module to IntEnum

2013-11-25 Thread Chris
Chris added the comment: I think I'll look for some other issues, this one looks a bit deep for a first patch. -- ___ Python tracker ___

[issue19624] Switch constants in the errno module to IntEnum

2013-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not so easy issue because the errno module is not pure Python module. ;) -- ___ Python tracker ___ ___

[issue19624] Switch constants in the errno module to IntEnum

2013-11-25 Thread Ethan Furman
Ethan Furman added the comment: Also see Issue18720 for those details. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue19624] Switch constants in the errno module to IntEnum

2013-11-25 Thread Ethan Furman
Ethan Furman added the comment: Check out socket.py for an example of constants being changed over to IntEnum. Feel free to ask more questions! :) -- ___ Python tracker ___ ___

[issue19624] Switch constants in the errno module to IntEnum

2013-11-25 Thread Chris
Chris added the comment: I would be interested in tackling this as a first patch, can you give me some more information? -- nosy: +chrishood ___ Python tracker ___ _

[issue19624] Switch constants in the errno module to IntEnum

2013-11-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy type: -> enhancement versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python

[issue19624] Switch constants in the errno module to IntEnum

2013-11-16 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: It will be good to switch constants in the errno module to IntEnum. -- components: Extension Modules, Library (Lib) messages: 203035 nosy: barry, eli.bendersky, ethan.furman, serhiy.storchaka priority: normal severity: normal stage: needs patch statu