
Sept. 30, 2015
8:54 p.m.
R. David Murray added the comment: 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. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue25275> _______________________________________