Python doc problems example: gzip module

pspierce at gmail.com pspierce at gmail.com
Fri Sep 2 03:15:07 CEST 2005


Peter Maas wrote:

> 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 fuck is
> > it talking about?
> >
> > Fuck 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 fuck 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')
> -------------------------------------------------------------------

The word has now completely lost any meaning for me.




More information about the Python-list mailing list