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