Tim Peters <t...@python.org> added the comment:
This is very well known on Windows, and the behavior is inherited from the Windows C libraries. If you need a byte count instead, then - as the docs already say - you need to open the file in binary mode instead. ---------- nosy: +tim.peters _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39962> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com