Python doc problem example: gzip module (reprise)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Byron Rios

    Python doc problem example: gzip module (reprise)

    >>fileToCompres s = open('finalcall ejon.mb')
    >>fileToStr = fileToCompress. read()
    >>import gzip
    >>fileZipped = gzip.GzipFile(' finalcallejon.m b.gz', 'wb', 9)
    >>fileZipped.wr ite(fileToStr)
    >>fileZipped.cl ose()
    this may help you in http://mail.python.org/pipermail/pyt...er/349718.html

    have a nice day
Working...