Georg Brandl added the comment:

It's mostly for consistency. For example, ``int(x, 0)`` is defined by the docs 
as "interpret x as in a literal".  Other bases have special cases as well, e.g. 
"0x" is accepted by base 16.

In the current version of the conversions, the string is scanned for "_" before 
doing the more expensive allocation+copy.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26331>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to