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 terry.reedy
Recipients docs@python, ezio.melotti, mrabarnett, py.user, r.david.murray, terry.reedy
Date 2012-04-13.17:02:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334336557.92.0.180780675871.issue14519@psf.upfronthosting.co.za>
In-reply-to
Content
I checked Standard C by Plauger & Brodie and as I read it, it agrees with py.user and his C compiler. For stdlib strtol() and strtoul(), the 0x/0X prefixes are accepted but optional for explicit base 16. If base is given as 0, they are accepted and set the base to 16 (which is otherwise 10). Except for %i, Xscanf functions apparently call either of the above with an explicit base, which is 16 for the %x specifiers.
History
Date User Action Args
2012-04-13 17:02:38terry.reedysetrecipients: + terry.reedy, ezio.melotti, mrabarnett, r.david.murray, docs@python, py.user
2012-04-13 17:02:37terry.reedysetmessageid: <1334336557.92.0.180780675871.issue14519@psf.upfronthosting.co.za>
2012-04-13 17:02:37terry.reedylinkissue14519 messages
2012-04-13 17:02:37terry.reedycreate