[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fc73c54dae46e6c47dcd4a535f7bc68a46b8e398 by Serhiy Storchaka (Miss Islington (bot)) in branch '2.7': bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) (#4623)

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 230ffeae0a3961b1769806bd722c26227c84e8da by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) (#4622)

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-28 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4538 ___ Python tracker ___

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 219c2de5ad0fdac825298bed1bb251f16956c04a by Serhiy Storchaka in branch 'master': bpo-32110: codecs.StreamReader.read(n) now returns not more than n (#4499)

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-28 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4537 ___ Python tracker ___

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > That's not true. .read(1) will at most read 1 byte from the stream > and decode it. There's no way it will return 70 characters. See the added tests. They are failed without changing the read() method. .read(1) currently

Re: [issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-22 Thread M.-A. Lemburg
On 22.11.2017 08:40, Serhiy Storchaka wrote: > Usually the read() method of a file-like object takes one optional argument > which limits the amount of data (the number of bytes or characters) returned > if specified. > > codecs.StreamReader.read() also has such parameter. But this is the

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4437 stage: -> patch review ___ Python tracker ___

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Usually the read() method of a file-like object takes one optional argument which limits the amount of data (the number of bytes or characters) returned if specified. codecs.StreamReader.read() also has such parameter. But