On 3/14/07, Greg Ewing <[EMAIL PROTECTED]> wrote:
>     1101(2)     # binary
>     1234(8)     # octal
>     1c3a(16)    # hexadecimal
>     12g7(35)    # why stop at 16?
>
> Since calling a built-in integer never makes sense,
> this would be unambiguous.

That's a great idea all the way around.  Another possible syntax would
be [EMAIL PROTECTED], [EMAIL PROTECTED], etc.  I don't think that could mean 
anything
currently.

> Perhaps an all-digits literal with a leading zero
> should be disallowed altogether. That ought to
> prevent any accidents.

Yeah, you can't change it; you have to deprecate it and then start
raising an exception.

Pat
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to