Message238317
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. |
|
Date |
User |
Action |
Args |
2015-03-17 17:06:24 | ethan.furman | set | recipients:
+ ethan.furman, gvanrossum, vstinner, giampaolo.rodola, neologix, python-dev, serhiy.storchaka |
2015-03-17 17:06:24 | ethan.furman | set | messageid: <1426611984.15.0.0630940198445.issue21076@psf.upfronthosting.co.za> |
2015-03-17 17:06:24 | ethan.furman | link | issue21076 messages |
2015-03-17 17:06:24 | ethan.furman | create | |
|