summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-08-30 20:51:59 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-08-30 20:51:59 (GMT)
commitd507dab91f9790a24bd53d41d7fcf52fe89a6eff (patch)
treebfd040b35180f81cb9b0376df6070d91a08e7c57 /Misc
parent21922aa9393996b1ea3f324759e158ec623acb43 (diff)
downloadcpython-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/NEWS12
1 files changed, 9 insertions, 3 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 7ea6b93..685d685 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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