<div dir="ltr"><div>In Python 3.4 some module constants were turned into enums.</div><div>The affected modules were socket (AF_INET*, SOCK_*) and pslistlib (FMT_*).</div><div>For 3.5 there's a plan to do the same thing for ssl's PROTOCOL_* constants:</div>
<div><a href="http://bugs.python.org/issue21068">http://bugs.python.org/issue21068</a><br></div><div>To me signal module looks like another good candidate which could benefit from this.</div><div>Here's a real world example:</div>
<div><a href="http://docs.python.org/dev/library/asyncio-eventloop.html#example-set-signal-handlers-for-sigint-and-sigterm">http://docs.python.org/dev/library/asyncio-eventloop.html#example-set-signal-handlers-for-sigint-and-sigterm</a><br>
</div><div><br>Thoughts?</div><div><br></div>-- <br><div dir="ltr"><div>Giampaolo - <a href="http://grodola.blogspot.com" target="_blank">http://grodola.blogspot.com</a></div><div><br></div></div>
</div>