summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-15 14:01:14 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-15 14:01:14 (GMT)
commitadd88060c1d1a98c7970e35b326e6a65a17ddf04 (patch)
tree4146cbc372dfa383886d8112dd8efe39ee5dacfe /Misc/NEWS
parent402905eaa0b989be3e6354c582f991764ada3e6b (diff)
downloadcpython-add88060c1d1a98c7970e35b326e6a65a17ddf04.zip
cpython-add88060c1d1a98c7970e35b326e6a65a17ddf04.tar.gz
cpython-add88060c1d1a98c7970e35b326e6a65a17ddf04.tar.bz2
Add notes about universal newlines.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS12
1 files changed, 10 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 3e9e1aa..5abfb42 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -233,6 +233,12 @@ Core and builtins
- The UTF-8 codec will now encode and decode Unicode surrogates
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
a ValueError when the xreadlines.next() method was called.
@@ -463,8 +469,10 @@ Build
doc strings from the builtin functions and modules; this reduces the
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.
+- 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.