This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients ethan.furman, giampaolo.rodola, gvanrossum, neologix, python-dev, serhiy.storchaka, vstinner
Date 2015-03-17.17:06:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426611984.15.0.0630940198445.issue21076@psf.upfronthosting.co.za>
In-reply-to
Content
Working on issue23673 I saw this in the new signal.py:

+def _enum_to_int(value):
+    """Convert an IntEnum member to a numeric value.
+    If it's not a IntEnum member return the value itself.
+    """
+    try:
+        return int(value)
+    except (ValueError, TypeError):
+        return value

The SIG, etc, constants are based on IntEnum, so they are already numeric values, and this function is unnecessary.
History
Date User Action Args
2015-03-17 17:06:24ethan.furmansetrecipients: + ethan.furman, gvanrossum, vstinner, giampaolo.rodola, neologix, python-dev, serhiy.storchaka
2015-03-17 17:06:24ethan.furmansetmessageid: <1426611984.15.0.0630940198445.issue21076@psf.upfronthosting.co.za>
2015-03-17 17:06:24ethan.furmanlinkissue21076 messages
2015-03-17 17:06:24ethan.furmancreate