i am new to python-Please somebody help

  • Thread starter cool.vimalsmail
  • Start date
C

cool.vimalsmail

i dont know how to convert a txt file into a zip file

(i.e.,)i have a file named packages and i want the packages file with
a ".gz" extension by implementing a python program
 
S

Steven D'Aprano

On Thu, 02 Aug 2007 09:31:43 +0000, cool.vimalsmail wrote:
[snip]

You would be better off actually writing a sensible subject line instead
of grovelling.

Subject: How to use gzip in Python? [beginner]

Then, having written a good subject line, it might have suggested a good
search string for Google: "gzip python"

http://www.google.com.au/search?&q=gzip+python

The first two links found will answer your question.
 
G

gregarican

On Thu, 02 Aug 2007 09:31:43 +0000, cool.vimalsmail wrote:

[snip]

You would be better off actually writing a sensible subject line instead
of grovelling.

Subject: How to use gzip in Python? [beginner]

Then, having written a good subject line, it might have suggested a good
search string for Google: "gzip python"

http://www.google.com.au/search?&q=gzip+python

The first two links found will answer your question.

This link answers my question --> http://www.google.com/search?hl=en&q=Python+list+rudeness.
Honestly, I have developed in both Ruby and Python for years now and
have consistently found that the Ruby community if more newbie-
friendly than Python's. Your points are well-taken in how to properly
post and how to do your own homework. Message correct. Delivery
lacking...
 
B

Bruno Desthuilliers

gregarican a écrit :
(snip)

I seriously don't think that this newsgroup can be qualified as "rude"
(and I'm possibly one of the "rudest" persons here). Compared to most
comp.* newsgroup, Python is certainly one of the most tolerant and
newbie-friendly around - and quite a lot of newcomers say so. FWIW, even
FAQs, RTFMs or STFWs are usually expressed in a mostly polite way, and
almost always with links and pointers (and FWIW, it's the case here).
Honestly, I have developed in both Ruby and Python for years now and
have consistently found that the Ruby community if more newbie-
friendly than Python's.

I spent sometimes lurking on c.l.ruby and didn't find it *that*
friendly. Not more than c.l.py at least, and certainly less respectful
of peoples coming from other languages...

Now if you want some examples of definitively "rude" newsgroups, I
suggest you take your chance on other newsgroups in the comp.*
hierarchy...
 
H

Hyuga

On Thu, 02 Aug 2007 09:31:43 +0000, cool.vimalsmail wrote:

[snip]

You would be better off actually writing a sensible subject line instead
of grovelling.

Subject: How to use gzip in Python? [beginner]

Then, having written a good subject line, it might have suggested a good
search string for Google: "gzip python"

http://www.google.com.au/search?&q=gzip+python

The first two links found will answer your question.

<OT>
Unlike gregarican, I mostly agree with the content of your post.
Except for your subject line suggestion. Why on earth would you
recommend someone use the obnoxious "How to ______ ?" question
format? Yes, I know it's extremely common, but it's completely
nonsensical English. Just try saying it out loud with an inquiring
inflection on the last word. Sounds ridiculous doesn't it? At least
without the question mark it means that the thread is on the topic of
"How to _____".
</OT>
 
T

Terry Reedy

| friendly than Python's. Your points are well-taken in how to properly
| post and how to do your own homework. Message correct. Delivery
| lacking...

Sorry, I saw nothing rude in Steven's straightforward and indeed polite
suggestion. Your post, however, ....

tjr
 
G

gregarican

| friendly than Python's. Your points are well-taken in how to properly
| post and how to do your own homework. Message correct. Delivery
| lacking...

Sorry, I saw nothing rude in Steven's straightforward and indeed polite
suggestion. Your post, however, ....

tjr

Maybe it's just me but the word "grovelling" just doesn't ring of
newbie friendliness. To each their own I guess. Kind of like the
Smalltalk list where a few respondents are really dry. Someone will
post asking something like "Can I use Smalltalk to do X so that it
talks to Y?" One guy (without pointing to a link or offering a
snippet) just posts "Yes." I guess literally they have contributed. Or
someone calls your house and asks, "Is so-and-so there?" You just say
"Yes" and hang up on them :)
 
N

Neil Cerutti

Maybe it's just me but the word "grovelling" just doesn't ring
of newbie friendliness.

Maybe not, but it seemed to be a reasonable characterisation of
the subject line.

The only thing more valued than politeness on most programming
newsgroups is correctness.
To each their own I guess. Kind of like the Smalltalk list
where a few respondents are really dry. Someone will post
asking something like "Can I use Smalltalk to do X so that it
talks to Y?" One guy (without pointing to a link or offering a
snippet) just posts "Yes." I guess literally they have
contributed. Or someone calls your house and asks, "Is
so-and-so there?" You just say "Yes" and hang up on them :)

Those kind of replies are posted for the fun of it, and with the
knowledge that somebody else will feel less flip at the time and
probably provide real help.
 
T

Terry Reedy

|| > Sorry, I saw nothing rude in Steven's straightforward and indeed
polite
| > suggestion. Your post, however, ....
| >
| > tjr
|
| Maybe it's just me but the word "grovelling" just doesn't ring of
| newbie friendliness. To each their own I guess.

I'll give you half a point here. I have seen enough friendly, helpful
posts from Steven that I am predisposed to give a friendly interpretation,
especialy when additional helpful suggestions follow. 'Stop grovelling'
<send> *would* have been rude, but that is far away from what Steven
posted.

| Kind of like the
| Smalltalk list where a few respondents are really dry. Someone will
| post asking something like "Can I use Smalltalk to do X so that it
| talks to Y?" One guy (without pointing to a link or offering a
| snippet) just posts "Yes." I guess literally they have contributed. Or
| someone calls your house and asks, "Is so-and-so there?" You just say
| "Yes" and hang up on them :)

I'll take the half point back here ;-). "Yes <click>" is precisely what
Steven did not do, so it was *not* 'kind of like'. He followed with a
useful suggestion and example link.

tjr
 
G

gregarican

gregarican a écrit :
(snip)


I seriously don't think that this newsgroup can be qualified as "rude"
(and I'm possibly one of the "rudest" persons here). Compared to most
comp.* newsgroup, Python is certainly one of the most tolerant and
newbie-friendly around - and quite a lot of newcomers say so. FWIW, even
FAQs, RTFMs or STFWs are usually expressed in a mostly polite way, and
almost always with links and pointers (and FWIW, it's the case here).


I spent sometimes lurking on c.l.ruby and didn't find it *that*
friendly. Not more than c.l.py at least, and certainly less respectful
of peoples coming from other languages...

Now if you want some examples of definitively "rude" newsgroups, I
suggest you take your chance on other newsgroups in the comp.*
hierarchy...

Good points. I guess I read a little too much into things. Apology
extended. I do recall when I was learning Python most of my questions
weren't crushed or anything. And I hear you about some of the other
comp.* lists. Browsing them awhile back I was left with my jaw open
thinking, "Oh no he diiiiiii....nt."
 
H

Hendrik van Rooyen

gregarican said:
Maybe it's just me but the word "grovelling" just doesn't ring of
newbie friendliness. To each their own I guess. Kind of like the
Smalltalk list where a few respondents are really dry. Someone will
post asking something like "Can I use Smalltalk to do X so that it
talks to Y?" One guy (without pointing to a link or offering a
snippet) just posts "Yes." I guess literally they have contributed. Or
someone calls your house and asks, "Is so-and-so there?" You just say
"Yes" and hang up on them :)

Or at table - "Can you pass the salt?"

"Yes"

< a brief hiatus, laden with unfulfilled expectations and no action >

"Please pass me the salt"

"Certainly - there you are."

On the subject of "grovelling" - this refusal to tug, and to condone
tugging at forelocks, may be a Southern Hemisphere affliction.

Don't like it myself.

- Hendrik
 
H

Hendrik van Rooyen

Bruno Desthuilliers said:
Now if you want some examples of definitively "rude" newsgroups, I
suggest you take your chance on other newsgroups in the comp.*
hierarchy...

I know someone who derisively refers to anybody that is associated
with computers in any way as a "Pencil Neck".

This leads me to wonder whether or not the rudeness stems from
the physically deficient's urge to kick sand in the bully's face.

- Hendrik
 
Z

Zentrader

On the discussion of rudeness, we have to include the OP. He/She/it
did not even attempt a Google before posting, and posted with a
meaningless subject. We'll chalk that up to newness, but some sort of
retort was called for IMHO. How else do we learn the conventions that
govern rudeness. Personally, there is only one form of rudeness that
can not be overlooked and that is the prima donna that says "My Way Is
The Only Way", or posts some nonsense like "that is not correct" with
no other explanation. Any attempt to sincerely help, I can live with.
 
Z

Zentrader

BTW - on the subject of polite discussions, how about this one as an
example of opinions politely expressed.
Oh, and does anyone know how to use zip in Python. Yes+1.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top