Python doc problem example: gzip module (reprise)

2008-06-21 Thread Byron Rios
fileToCompress = open('finalcallejon.mb') fileToStr = fileToCompress.read() import gzip fileZipped = gzip.GzipFile('finalcallejon.mb.gz', 'wb', 9) fileZipped.write(fileToStr) fileZipped.close() this may help you in http://mail.python.org/pipermail/python-list/2005-November/349718.html

Re: Python doc problem example: gzip module (reprise)

2005-11-09 Thread Jeffrey Schwab
Mike Meyer wrote: Xah Lee [EMAIL PROTECTED] writes: Newsgroups: comp.lang.perl.misc PS: I won't cross-post as I'm not subscribed to the Python group. Very wisely done. Then from Xah Lee, we get; I have cross posted it for you. Proving once again that he's stupider than spam.

Re: Python doc problem example: gzip module (reprise)

2005-11-08 Thread Xah Lee
Newsgroups: comp.lang.perl.misc From: Veli-Pekka Tätilä Date: Sat, 5 Nov 2005 17:25:35 +0200 Subject: Re: Python doc problem example: gzip module (reprise) Xah Lee wrote: Today i need to use Python to compress/decompress gzip files. snip However, scanning the doc after 20 seconds there's

Re: Python doc problem example: gzip module (reprise)

2005-11-08 Thread Mike Meyer
Xah Lee [EMAIL PROTECTED] writes: Newsgroups: comp.lang.perl.misc PS: I won't cross-post as I'm not subscribed to the Python group. Very wisely done. Then from Xah Lee, we get; I have cross posted it for you. Proving once again that he's stupider than spam. Please help google find him that

Re: Python doc problem example: gzip module (reprise)

2005-11-07 Thread jmdeschamps
(gulp! red-in-the-face) yes Steve, I meant gist, sorry if I offended anyone, specially Fredrik since I was referring to the 'substance' of his post...certainly not as if it were a 'joke' . Jean-Marc -- http://mail.python.org/mailman/listinfo/python-list

Re: Python doc problem example: gzip module (reprise)

2005-11-06 Thread Bengt Richter
On 05 Nov 2005 19:19:29 -0800, Paul Rubin http://[EMAIL PROTECTED] wrote: Mike Meyer [EMAIL PROTECTED] writes: It's only -because- of those licenses that there's any reason not to bundle. Actually, there are other reasons, just as there are reasons besides licensing for not simply

Re: Python doc problem example: gzip module (reprise)

2005-11-06 Thread jmdeschamps
Sorry but I take exception on this subject. I still think Fredrik's Intro to Tkinter is still more usable ... Grayson's book uses PMW extensively, and a lot is about specific widgets of that library. This actually brings us back to the jest of F. previous post, that documentation is question of

Re: Python doc problem example: gzip module (reprise)

2005-11-06 Thread Steven D'Aprano
On Sun, 06 Nov 2005 04:28:35 -0800, jmdeschamps wrote: This actually brings us back to the jest of F. previous post, I didn't think it was very funny... Unless you meant the *gist* of Fredrik's post. -- Steven. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python doc problem example: gzip module (reprise)

2005-11-06 Thread Keith Thompson
Rick Wotnaz [EMAIL PROTECTED] writes: [snip] I've managed to avoid reading Xah Lee's diatribes for the most part. Since you included the *WHOLE THING* in your post, I had an opportunity to see what he had to say, and for once I agree with some of it. That's fine, but if you're going to

Python doc problem example: gzip module (reprise)

2005-11-05 Thread Xah Lee
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30 minutes with Python 3 times a week since, have 14 years of computing experience, 8 years in mathematical

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Gerard Flanagan
Xah Lee wrote: Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30 minutes with Python 3 times a week since, have 14 years of computing experience, 8 years

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Jeffrey Schwab
Xah Lee wrote: i've read the official Python tutorial 8 months ago, have spent 30 minutes with Python 3 times a week since, have 14 years of computing experience, 8 years in mathematical computing and 4 years in unix admin and perl I can wiggle my ears. --

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Rick Wotnaz
Gerard Flanagan [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Xah Lee wrote: Python Doc Problem Example: gzip [...] A quality documentation should be clear, succinct, precise. And, the least it assumes reader's expertise to obtain these qualities, the better it is. Vast majority of

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Peter Hansen
Jeffrey Schwab wrote: Xah Lee wrote: i've read the official Python tutorial 8 months ago, have spent 30 minutes with Python 3 times a week since, have 14 years of computing experience, 8 years in mathematical computing and 4 years in unix admin and perl I can wiggle my ears. Which is

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Charlton Wilbur
RW == Rick Wotnaz [EMAIL PROTECTED] writes: RW Someone is sure to jump in now and point to sample code, which RW nearly all reasonably major packages include. That's good RW stuff. With (for example) wxPython, it's the only useful RW documentation, or rather, it's the only thing

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Andrea Gavana
Hello NG, I've managed to avoid reading Xah Lee's diatribes for the most part. Since you included the *WHOLE THING* in your post, I had an opportunity to see what he had to say, and for once I agree with some of it. snip I would love to see examples for essentially every function and

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Mike Meyer
Andrea Gavana [EMAIL PROTECTED] writes: I tend to agree with you, Rick. I usually don't like Xah's posting behavior, but this time he has done, in my opinion, a constructive criticism (and he didn't even say *fuck* once in the whole post!!!). I am quite a newbie in Python, I usually deal with

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: The thing is, the library documentation that Xah Lee is complaining about is a *reference document*. It says so right in the title: Python Library Reference. As such, it makes lousy tutorial documentation. I'm not sure which particular library Xah Lee was

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: The thing is, the library documentation that Xah Lee is complaining about is a *reference document*. It says so right in the title: Python Library Reference. As such, it makes lousy tutorial documentation. I'm

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: To my knowledge the PSF isn't doing anything about including the documentation with their distribution, so they shouldn't care about the licenses. Wanting to bundle a good tutorial for everything in the library might be on the list, but the licenses on

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: To my knowledge the PSF isn't doing anything about including the documentation with their distribution, so they shouldn't care about the licenses. Wanting to bundle a good tutorial for everything in the library might be on the list, but the licenses

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: It's only -because- of those licenses that there's any reason not to bundle. Actually, there are other reasons, just as there are reasons besides licensing for not simply including third party libraries into the standard library. I'm not talking about

Re: Python doc problem example: gzip module (reprise)

2005-11-05 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] writes: It's only -because- of those licenses that there's any reason not to bundle. Actually, there are other reasons, just as there are reasons besides licensing for not simply including third party libraries into