[Python-ideas] Turn signal.SIG* constants into enums
Giampaolo Rodola'
g.rodola at gmail.com
Wed Mar 26 15:37:40 CET 2014
In Python 3.4 some module constants were turned into enums.
The affected modules were socket (AF_INET*, SOCK_*) and pslistlib (FMT_*).
For 3.5 there's a plan to do the same thing for ssl's PROTOCOL_* constants:
http://bugs.python.org/issue21068
To me signal module looks like another good candidate which could benefit
from this.
Here's a real world example:
http://docs.python.org/dev/library/asyncio-eventloop.html#example-set-signal-handlers-for-sigint-and-sigterm
Thoughts?
--
Giampaolo - http://grodola.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140326/4e681b06/attachment.html>
More information about the Python-ideas
mailing list