[Python-checkins] CVS: python/dist/src/Misc NEWS,1.218,1.219
Tim Peters
tim_one@users.sourceforge.net
Thu, 30 Aug 2001 13:52:01 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv10452/python/Misc
Modified Files:
NEWS
Log Message:
SF patch #455966: Allow leading 0 in float/imag literals.
Consequences for Jython still unknown (but raised on Jython-Dev).
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.218
retrieving revision 1.219
diff -C2 -d -r1.218 -r1.219
*** NEWS 2001/08/30 15:38:01 1.218
--- NEWS 2001/08/30 20:51:59 1.219
***************
*** 4,7 ****
--- 4,13 ----
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.
***************
*** 28,38 ****
- 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
--- 34,44 ----
- 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