@@ -1000,9 +1000,15 @@ \section{New, Improved, and Deprecated Modules}
10001000 \item Korean: cp949, euc-kr, johab, iso-2022-kr
10011001\end {itemize }
10021002
1003+ \item The UTF-8 and UTF-16 codecs now cope better with receiving partial input.
1004+ Previously the \class {StreamReader} class would try to read more data,
1005+ which made it impossible to resume decoding from the stream. The
1006+ \method {read()} method will now return as much data as it can and future
1007+ calls will resume decoding where previous ones left off.
1008+ (Implemented by Walter D\" orwald.)
1009+
10031010\item Some other new encodings were added: HP Roman8,
1004- ISO_8859-11, ISO_8859-16, PCTP-154,
1005- and TIS-620.
1011+ ISO_8859-11, ISO_8859-16, PCTP-154, and TIS-620.
10061012
10071013\item There is a new \module {collections} module for
10081014 various specialized collection datatypes.
@@ -1046,12 +1052,15 @@ \section{New, Improved, and Deprecated Modules}
10461052that creates an HTML table showing a side by side comparison
10471053of two versions of a text. (Contributed by Dan Gass.)
10481054
1049- \item The \module {email} package uses a new incremental parser for MIME
1050- message, available in the \module {email.FeedParser} module.
1051- The new parser doesn't require reading the entire message into memory,
1052- and doesn't throw exceptions if a message is malformed; instead it records
1053- any problems as a \member {defect} attribute of the message.
1054- (Developed by Anthony Baxter, Barry Warsaw, Thomas Wouters, and others.)
1055+ \item The \module {email} package was updated to version 3.0,
1056+ which dropped various deprecated APIs and removes support for Python
1057+ versions earlier than 2.3. The 3.0 version of the package uses a new
1058+ incremental parser for MIME message, available in the
1059+ \module {email.FeedParser} module. The new parser doesn't require
1060+ reading the entire message into memory, and doesn't throw exceptions
1061+ if a message is malformed; instead it records any problems as a
1062+ \member {defect} attribute of the message. (Developed by Anthony
1063+ Baxter, Barry Warsaw, Thomas Wouters, and others.)
10551064
10561065\item The \module {heapq} module has been converted to C. The resulting
10571066 tenfold improvement in speed makes the module suitable for handling
@@ -1170,13 +1179,16 @@ \section{New, Improved, and Deprecated Modules}
11701179 format='%(levelname):%(process):%(thread):%(message)')
11711180\end {verbatim }
11721181
1173- Another addition to \module {logging} is a
1174- \class {TimedRotatingFileHandler} class which rotates its log files at
1182+ Other additions to \module {logging} include a \method {log(\var {level},
1183+ \var {msg})} convenience method, and a
1184+ \class {TimedRotatingFileHandler} class that rotates its log files at
11751185a timed interval. The module already had \class {RotatingFileHandler},
11761186which rotated logs once the file exceeded a certain size. Both
11771187classes derive from a new \class {BaseRotatingHandler} class that can
11781188be used to implement other rotating handlers.
11791189
1190+ (Changes implemented by Vinay Sajip.)
1191+
11801192\item The \module {marshal} module now shares interned strings on unpacking a
11811193data structure. This may shrink the size of certain pickle strings,
11821194but the primary effect is to make \file {.pyc} files significantly smaller.
0 commit comments