[Python-Dev] Is "0x" a valid token?

Guido van Rossum guido at python.org
Sat Jan 19 18:43:41 CET 2008


On Jan 19, 2008 9:40 AM, Georg Brandl <g.brandl at gmx.net> wrote:
> Python accepts 0x as an integer literal. Is this intended (the docs
> say otherwise, but int() and tokenize.py concur)?

Definitely a bug. I see no use case for this.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list