Re: Python doc problems example: gzip module
- From: Peter Maas <peter@xxxxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 11:47:02 +0200
Xah Lee schrieb:
today i need to use Python to decompress gzip files.
since i'm familiar with Python doc and have 10 years of computing experience with 4 years in unix admin and perl, i have quickly located the official doc:
http://python.org/doc/2.4.1/lib/module-gzip.html
but after a minute of scanning, please someone tell me what the *** is it talking about?
*** the Python programing morons.
Thanks.
I just need to decompress files. Is it:
import gzip; gzip.GzipFile("/Users/xah/access_log.1.gz");
can someone put a example into that fucking doc so that people don't have to wade thru whatever *** it is trying to sound big?
Here's the example: import gzip
# read fucked
fuckedfile = gzip.GzipFile('somefile.gz')
content = fuckedfile.read()
fuckedfile.close()# write unfucked
unfuckedfile = file('somefile','w')
unfuckedfile.write(content)
unfuckedfile.close()Please feel free to insert this fucking example into the fucking docs.
Have a nice ... eh fucking day :)
--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------
.- Follow-Ups:
- Re: Python doc problems example: gzip module
- From: Fredrik Lundh
- Re: Python doc problems example: gzip module
- References:
- Python doc problems example: gzip module
- From: Xah Lee
- Python doc problems example: gzip module
- Prev by Date: Re: Adding bound methods dynamically... CORRECTED
- Next by Date: Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type
- Previous by thread: Python doc problems example: gzip module
- Next by thread: Re: Python doc problems example: gzip module
- Index(es):