summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-09-07 20:24:22 +0000
committerWalter Dörwald <walter@livinglogic.de>2004-09-07 20:24:22 +0000
commit69652035bc2cf22b0326bb00824f4b7e2674cc8b (patch)
tree088104a47f9c9cfc466a3e1c5f4d2560b2d41450 /Misc
parenta708d6e3b0aa2d225d4e5ab338862f67994e1c45 (diff)
downloadcpython-git-69652035bc2cf22b0326bb00824f4b7e2674cc8b.tar.gz
SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now support
decoding incomplete input (when the input stream is temporarily exhausted). codecs.StreamReader now implements buffering, which enables proper readline support for the UTF-16 decoders. codecs.StreamReader.read() has a new argument chars which specifies the number of characters to return. codecs.StreamReader.readline() and codecs.StreamReader.readlines() have a new argument keepends. Trailing "\n"s will be stripped from the lines if keepends is false. Added C APIs PyUnicode_DecodeUTF8Stateful and PyUnicode_DecodeUTF16Stateful.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS13
1 files changed, 11 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 4f3ced88cd..4ebd169f8e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -22,7 +22,14 @@ Extension modules
Library
-------
-...
+- SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now support
+ decoding incomplete input (when the input stream is temporarily exhausted).
+ ``codecs.StreamReader`` now implements buffering, which enables proper
+ readline support for the UTF-16 decoders. ``codecs.StreamReader.read()``
+ has a new argument ``chars`` which specifies the number of characters to
+ return. ``codecs.StreamReader.readline()`` and
+ ``codecs.StreamReader.readlines()`` have a new argument ``keepends``.
+ Trailing "\n"s will be stripped from the lines if ``keepends`` is false.
Build
-----
@@ -32,7 +39,9 @@ Build
C API
-----
-...
+- SF patch #998993: ``PyUnicode_DecodeUTF8Stateful`` and
+ ``PyUnicode_DecodeUTF16Stateful`` have been added, which implement stateful
+ decoding.
Documentation
-------------