diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-08-30 20:51:59 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-08-30 20:51:59 (GMT) |
commit | d507dab91f9790a24bd53d41d7fcf52fe89a6eff (patch) | |
tree | bfd040b35180f81cb9b0376df6070d91a08e7c57 /Misc | |
parent | 21922aa9393996b1ea3f324759e158ec623acb43 (diff) | |
download | cpython-d507dab91f9790a24bd53d41d7fcf52fe89a6eff.zip cpython-d507dab91f9790a24bd53d41d7fcf52fe89a6eff.tar.gz cpython-d507dab91f9790a24bd53d41d7fcf52fe89a6eff.tar.bz2 |
SF patch #455966: Allow leading 0 in float/imag literals.
Consequences for Jython still unknown (but raised on Jython-Dev).
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -3,6 +3,12 @@ What's New in Python 2.2a3? Core ++ The syntax of floating-point and imaginary literals has been + liberalized, to allow leading zeroes. Examples of literals now + legal that were SyntaxErrors before: + + 00.0 0e3 0100j 07.5 00000000000000000008. + + An old tokenizer bug allowed floating point literals with an incomplete exponent, such as 1e and 3.1e-. Such literals now raise SyntaxError. @@ -27,13 +33,13 @@ API module: - rename Py_TPFLAGS_GC to PyTPFLAGS_HAVE_GC - + - use PyObject_GC_New or PyObject_GC_NewVar to allocate objects and PyObject_GC_Del to deallocate them - + - rename PyObject_GC_Init to PyObject_GC_Track and PyObject_GC_Fini to PyObject_GC_UnTrack - + - remove PyGC_HEAD_SIZE from object size calculations - remove calls to PyObject_AS_GC and PyObject_FROM_GC |