> Semantic Changes
> ================
>
> The behavior of the 'int' builtin when passed a radix of 0 will be changed to
> follow the above grammar. This change is to maintain the specified behavior
> [5]_ that a radix of 0 mirrors the literal syntax. The behavior of this
> function will otherwise not be altered. In particular, the behavior of
> accepting the prefix '0X' when a radix of 16 is specified will be kept for
> backwards compatibility and easier parsing of data files.

And float()?  Will this break?

In [9]: float('%E' % 3e-10)
Out[9]: 3e-10

Changes like this don't do much for me.  Sure, lowercase modifiers are
prettier, but why remove the general functionality and leave in a few
special cases, especially when functionality to display numbers in
those formats exists?

numeric literals: -0
string literals: +0

-Mike
_______________________________________________
Python-3000 mailing list
[email protected]
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