[issue43297] bz2.open modes behaving differently than standard open() modes

Philipp Freyer report at bugs.python.org
Wed Feb 24 00:52:12 EST 2021


Philipp Freyer <philipp.freyer at dilcher.de> added the comment:

I understand and accept that but I would recommend highlighting this difference in the documentation a bit more since this information can be easily skipped when reading the documentation.

I still find it important to hint to this stronger since I've seen countless code snippets and answers on Stackoverflow that either tell the user to use "r" for text mode and "rb" for binary or - if listing file open modes do not mention the "*t" modes at all.

If you can point me to where to suggest a change (or pull request) for the documentation, I am happy to propose a change myself :-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43297>
_______________________________________


More information about the Python-bugs-list mailing list