[Python-checkins] python/dist/src/Misc NEWS,1.468,1.469

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
2002年8月15日 07:01:17 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv11750
Modified Files:
	NEWS 
Log Message:
Add notes about universal newlines.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.468
retrieving revision 1.469
diff -C2 -d -r1.468 -r1.469
*** NEWS	14 Aug 2002 21:20:32 -0000	1.468
--- NEWS	15 Aug 2002 14:01:14 -0000	1.469
***************
*** 234,237 ****
--- 234,243 ----
 correctly and without raising exceptions for unpaired ones.
 
+ - Universal newlines (PEP 278) is implemented. Briefly, using 'U'
+ instead of 'r' when opening a text file for reading changes the line
+ ending convention so that any of '\r', '\r\n', and '\n' is
+ recognized (even mixed in one file); all three are converted to
+ '\n', the standard Python line end character.
+ 
 - file.xreadlines() now raises a ValueError if the file is closed:
 Previously, an xreadlines object was returned which would raise
***************
*** 464,469 ****
 size of the executable.
 
! - XXX WITH_UNIVERSAL_NEWLINES Somebody fill this in; the PEP doesn't
! say how or when to configure it, or how to turn it off.
 
 - On Unix, a shared libpython2.3.so can be created with --enable-shared.
--- 470,477 ----
 size of the executable.
 
! - The universal newlines option (PEP 278) is on by default. On Unix
! it can be disabled by passing --without-universal-newlines to the
! configure script. On other platforms, remove
! WITH_UNIVERSAL_NEWLINES from pyconfig.h.
 
 - On Unix, a shared libpython2.3.so can be created with --enable-shared.

AltStyle によって変換されたページ (->オリジナル) /