On 6/9/07, Georg Brandl <[EMAIL PROTECTED]> wrote:
> Guido van Rossum schrieb:
> > PEP 3127 (Integer Literal Support and Syntax) introduces new notations
> > for octal and binary integers. This isn't implemented yet. Are there
> > any takers? It shouldn't be particularly complicated.
>
> I have a patch lying around here which might be quite complete...

Cool!

> One thing that's unclear to me though: didn't we decide to drop the uppercase
> string modfiers/number suffixes/prefixes?

In the end (doesn't the PEP confirms this?) we decided to keep them
and make it a style rule instead. Some folks have generated data sets
using uppercase.

> Also, I'm not sure what int() should do with "010".

int("010") should return (decimal) 10.
int("010", 0) should raise ValueError.

I thought that was also in the PEP.

Anyway, with these tweaks, feel free to just check it in (well, if you
also fix the standard library to use the new notation).

--Guido

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
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