[issue43873] bz2.open() docs give conflicting defaults for mode

2021-04-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This was fixed in https://github.com/python/cpython/pull/15100 and not backported. -- nosy: +xtreak ___ Python tracker ___

[issue43873] bz2.open() docs give conflicting defaults for mode

2021-04-16 Thread Ned Deily
Change by Ned Deily : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43873] bz2.open() docs give conflicting defaults for mode

2021-04-16 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The documentation has been corrected in 3.9. Prior to 3.9 the header was bz2.open(filename, mode='r' ...). Now in 3.9 or later the header is bz2.open(filename, mode='rb' ...). -- nosy: +shreyanavigyan ___ Python

[issue43873] bz2.open() docs give conflicting defaults for mode

2021-04-16 Thread Roy Smith
New submission from Roy Smith : 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