Python Forum
default mode in compression modules
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
default mode in compression modules
#1
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  detecting type of compression of a file Skaperen 1 2,777 Oct-30-2020, 11:04 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020