Python Forum

Full Version: default mode in compression modules
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
lzma.open() and gzip.open() both show a default for mode of 'rb' but bzip2 shows a default of 'r'. given that the effect is the same since all 3 open in binary unless text is specified, what's the meaning of this? someone just forgot to type 'b' when adding bzip2 to the documentation?