Python-list Digest, Vol 18, Issue 208
Steven Bethard
steven.bethard at gmail.com
Tue Mar 15 18:45:36 EST 2005
Reinhold Birkenfeld wrote:
> So what's the current state of the "universal-base-prefix" syntax?
>
> Something like 10x10, 16xA and 8x12?
An interesting thought -- I like the consistency. On the other hand, I
have a hard time imagining that this is such a common need that it
requires syntactic support. The int type should cover most use cases:
py> int("10", 10)
10
py> int("A", 16)
10
py> int("12", 8)
10
STeVe
More information about the Python-list
mailing list