Numeric literals in other than base 10 - was Annoying octal notation

greg greg at cosc.canterbury.ac.nz
Sun Aug 23 21:46:18 EDT 2009


J. Cliff Dyer wrote:

> What happens if you use a literal like 0x10f 304?

To me the obvious thing to do is concatenate them
textually and then treat the whole thing as a single
numeric literal. Anything else wouldn't be sane, IMO.

-- 
Greg



More information about the Python-list mailing list