[New-bugs-announce] [issue43873] bz2.open() docs give conflicting defaults for mode

Roy Smith report at bugs.python.org
Fri Apr 16 14:16:59 EDT 2021


New submission from Roy Smith <roy at panix.com>:

See https://docs.python.org/3.7/library/bz2.html

For bz2.open(), the section header says:

bz2.open(filename, mode='r' ...)

but the text says:

The mode argument ... The default is 'rb'.

As I understand it, 'r' and 'rb' actually do the same thing, but the docs should at least be consistent.

----------
components: Library (Lib)
messages: 391245
nosy: roysmith
priority: normal
severity: normal
status: open
title: bz2.open() docs give conflicting defaults for mode
versions: Python 3.7

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


More information about the New-bugs-announce mailing list