diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-28 23:30:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 23:30:00 (GMT) |
commit | 219c2de5ad0fdac825298bed1bb251f16956c04a (patch) | |
tree | 728e8ffcfecbf1bc12aefaff2dad81720058f775 /Misc | |
parent | 23df2d1304ece169d7e0dfc843dfb8026b413d9f (diff) | |
download | cpython-219c2de5ad0fdac825298bed1bb251f16956c04a.zip cpython-219c2de5ad0fdac825298bed1bb251f16956c04a.tar.gz cpython-219c2de5ad0fdac825298bed1bb251f16956c04a.tar.bz2 |
bpo-32110: codecs.StreamReader.read(n) now returns not more than n (#4499)
characters/bytes for non-negative n. This makes it compatible with
read() methods of other file-like objects.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-11-22-09-44-15.bpo-32110.VJa9bo.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-11-22-09-44-15.bpo-32110.VJa9bo.rst b/Misc/NEWS.d/next/Library/2017-11-22-09-44-15.bpo-32110.VJa9bo.rst new file mode 100644 index 0000000..b57ff1a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-11-22-09-44-15.bpo-32110.VJa9bo.rst @@ -0,0 +1,3 @@ +``codecs.StreamReader.read(n)`` now returns not more than *n* +characters/bytes for non-negative *n*. This makes it compatible with +``read()`` methods of other file-like objects. |