Message349487
| Author |
tim.peters |
| Recipients |
mark.dickinson, rhettinger, serhiy.storchaka, tim.peters, tomerv |
| Date |
2019年08月12日.19:03:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1565636584.86.0.365373923889.issue37831@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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. |
|