[Python-ideas] Turn signal.SIG* constants into enums

Giampaolo Rodola' g.rodola at gmail.com
Thu Mar 27 17:00:54 CET 2014


Here's a patch: http://bugs.python.org/issue21076

On Wed, Mar 26, 2014 at 4:37 PM, Guido van Rossum <guido at python.org> wrote:

> SGTM.
> On Mar 26, 2014 7:38 AM, "Giampaolo Rodola'" <g.rodola at gmail.com> wrote:
>
>> 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
>>
>>
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
>


-- 
Giampaolo - http://grodola.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140327/a38510d9/attachment.html>


More information about the Python-ideas mailing list