Message251967
Good catch. Yes, it is already documented that Int ignores leading and trailing whitespace.
But, even that isn't quite correct:
>>> 'A'.isdecimal()
False
>>> int('A', 16)
10
I seem to vaguely recall a discussion somewhere in this tracker about what "should" count as digits for larger-than-decimal radii, but I don't remember the outcome. |
|
Date |
User |
Action |
Args |
2015-09-30 20:54:42 | r.david.murray | set | recipients:
+ r.david.murray, vstinner, ezio.melotti, docs@python, shreevatsa |
2015-09-30 20:54:42 | r.david.murray | set | messageid: <1443646482.81.0.18638309334.issue25275@psf.upfronthosting.co.za> |
2015-09-30 20:54:42 | r.david.murray | link | issue25275 messages |
2015-09-30 20:54:42 | r.david.murray | create | |
|