|
From: Tim P. <ti...@zo...> - 2001-08-30 20:02:47
|
Hi -- I'm about to check in a change to Python's float literal syntax: http://sf.net/tracker/?func=detail&atid=305470&aid=455966&group_id=5470 Currently, CPython doesn't allow a float or imag literal to begin with a string of digits that "looks like" an octal literal, except for the specific prefix "0.". Things like 00.0 0e3 0100j 09.5 are all rejected as SyntaxErrors. After the patch, those are all accepted. Will this create problems for Jython? It required looking ahead in Python's by-hand lexer (e.g., 090000000000000. is a legit float literal after the patch, but take off the trailing point and it's still a SyntaxError (an octal literal with the digit '9'). significant-leading-zeroes-are-insane-ly y'rs - tim |