Message73214
The library reference for int() says, "If radix is zero, the proper
radix is guessed based on the contents of string; the interpretation is
the same as for integer literals." The use of the word 'guess' implies
that there is some heuristic used here, that somehow the function will
look at an arbitrary number and figure out the correct radix. This can
confuse newbies:
http://mail.python.org/pipermail/tutor/2008-September/064268.html
'determined' might be a better word. For bonus points link to the
Language Reference page on integer literals:
http://docs.python.org/ref/integers.html |
|
Date |
User |
Action |
Args |
2008-09-14 11:58:06 | kjohnson | set | recipients:
+ kjohnson, georg.brandl |
2008-09-14 11:58:06 | kjohnson | set | messageid: <1221393486.32.0.176734593985.issue3866@psf.upfronthosting.co.za> |
2008-09-14 11:58:05 | kjohnson | link | issue3866 messages |
2008-09-14 11:58:05 | kjohnson | create | |
|