file.read Method Documentation (Python 2.7.10)

Barry Scott barry at barrys-emacs.org
Mon Jan 9 11:56:36 EST 2023


On 09/01/2023 14:34, Stephen Tucker wrote:
> Dear Python-list,
>
> Yes, I know that Python 2.x is no longer supported.
>
> I have found that the documentation for this method is misleading when the
> file being read is UTF-8-encoded:
>
>     Instead of reading *size* bytes, the method reads *size *UTF-8 byte
> *sequences*.
>
> Has this error been corrected in the Python 3.x documentation?

Please read the python 3 docs and let us know if you think its correct now.

Barry



More information about the Python-list mailing list