This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author georg.brandl
Recipients ethan.furman, georg.brandl, mark.dickinson, petr.viktorin, serhiy.storchaka, skrah, yselivanov
Date 2016-02-13.11:21:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455362479.16.0.624792957512.issue26331@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-02-13 11:21:19georg.brandlsetrecipients: + georg.brandl, mark.dickinson, petr.viktorin, skrah, ethan.furman, serhiy.storchaka, yselivanov
2016-02-13 11:21:19georg.brandlsetmessageid: <1455362479.16.0.624792957512.issue26331@psf.upfronthosting.co.za>
2016-02-13 11:21:19georg.brandllinkissue26331 messages
2016-02-13 11:21:18georg.brandlcreate