Message158212
| 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. |
|