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 <rep...@bugs.python.org> <http://bugs.python.org/issue25275> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com