Web Images Videos Maps News Shopping Google Mail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Python doc problems example: gzip module
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Peter Maas  
View profile   Translate to Translated (View Original)
 More options 31 Aug 2005, 10:47
Newsgroups: comp.lang.python
From: Peter Maas <pe...@somewhere.com>
Date: Wed, 31 Aug 2005 11:47:02 +0200
Local: Wed 31 Aug 2005 10:47
Subject: Re: Python doc problems example: gzip module
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')
-------------------------------------------------------------------


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google