summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2007-03-30 17:58:16 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2007-03-30 17:58:16 (GMT)
commitef9e09e737914c9c5d91cf177df43fdad4be6000 (patch)
treed5188485c915ae3eaf60baaae0e665e3ca180215
parent7b1be36bb75b6e682a05f45267077f9c6583f680 (diff)
downloadcpython-ef9e09e737914c9c5d91cf177df43fdad4be6000.zip
cpython-ef9e09e737914c9c5d91cf177df43fdad4be6000.tar.gz
cpython-ef9e09e737914c9c5d91cf177df43fdad4be6000.tar.bz2
Add item
-rw-r--r--Doc/whatsnew/whatsnew25.tex11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex
index 85d5a2a..b2f7380 100644
--- a/Doc/whatsnew/whatsnew25.tex
+++ b/Doc/whatsnew/whatsnew25.tex
@@ -1294,6 +1294,17 @@ the function is 6 times faster.
(Contributed by Alan McIntyre and committed at the NeedForSpeed sprint.)
% Patch 1442927
+\item It's now illegal to mix iterating over a file
+with \code{for line in \var{file}} and calling
+the file object's \method{read()}/\method{readline()}/\method{readlines()}
+methods. Iteration uses an internal buffer and the
+\method{read*()} methods don't use that buffer.
+Instead they would return the data following the buffer, causing the
+data to appear out of order. Mixing iteration and these methods will
+now trigger a \exception{ValueError} from the \method{read*()} method.
+(Implemented by Thomas Wouters.)
+% Patch 1397960
+
\item The \module{struct} module now compiles structure format
strings into an internal representation and caches this
representation, yielding a 20\% speedup. (Contributed by Bob Ippolito