
June 5, 2019
8:58 p.m.
Hi William,
The problem is that it says "bytes", but in text mode, f.read(size) will return size characters.
You're right, thanks for reporting! Would you like to open a pull request on https://github.com/python/cpython to fix this? If you need any help in doing so, don't hesitate to ask. (The file is here: https://github.com/python/cpython/blob/master/Doc/tutorial/inputoutput.rst) Bests, -- Julien Palard https://mdk.fr