Message349487
Mark, isn't `int()` the obvious way "to convert an integer-like thing to an actual int"?
>>> int(True)
1
>>> int(False)
0
For the rest, I'm -True on making ~ do something magical for bools inconsistent with what it does for ints. "is-a" is a promise. |
|
Date |
User |
Action |
Args |
2019-08-12 19:03:04 | tim.peters | set | recipients:
+ tim.peters, rhettinger, mark.dickinson, serhiy.storchaka, tomerv |
2019-08-12 19:03:04 | tim.peters | set | messageid: <1565636584.86.0.365373923889.issue37831@roundup.psfhosted.org> |
2019-08-12 19:03:04 | tim.peters | link | issue37831 messages |
2019-08-12 19:03:04 | tim.peters | create | |
|