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

Guido van Rossum guido at python.org
Wed Mar 26 16:37:53 CET 2014


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/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140326/85e7fa14/attachment.html>


More information about the Python-ideas mailing list