Message158310
| Author |
py.user |
| Recipients |
docs@python, ezio.melotti, mrabarnett, py.user, r.david.murray, terry.reedy |
| Date |
2012年04月15日.03:58:31 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334462311.71.0.967949320169.issue14519@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
the same problem in the %o analog
valid strings for the %x specifier of scanf():
"+0xabc"
"-0xabc"
"+abc"
"-abc"
valid strings for the %o specifier of scanf():
"+0123"
"-0123"
"+123"
"-123"
how to patch
the %x specifier:
0[xX][\dA-Fa-f]+ -> [-+]?(0[xX])?[\dA-Fa-f]+
the %o specifier:
0[0-7]* -> [-+]?[0-7]+ |
|