473,544 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

i am new to python-Please somebody help

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

Aug 2 '07 #1
14 1288
On Aug 2, 4:31 am, cool.vimalsm... @gmail.com wrote:
>
i want the packages file with
a ".gz" extension by implementing a python program
http://docs.python.org/lib/module-gzip.html

Aug 2 '07 #2
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.
--
Steven.

Aug 2 '07 #3
On Aug 2, 8:51 am, Steven D'Aprano
<st...@REMOVE.T HIS.cybersource .com.auwrote:
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.

--
Steven.
This link answers my question --http://www.google.com/search?hl=en&q...+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...

Aug 2 '07 #4
On Aug 2, 8:51 am, Steven D'Aprano
<st...@REMOVE.T HIS.cybersource .com.auwrote:
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.

--
Steven.
<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>

Aug 2 '07 #5

"gregarican " <gr*********@gm ail.comwrote in message
news:11******** *************@q 3g2000prf.googl egroups.com...
| 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

Aug 2 '07 #6
On Aug 2, 12:58 pm, "Terry Reedy" <tjre...@udel.e duwrote:
"gregarican " <greg.kuj...@gm ail.comwrote in message

news:11******** *************@q 3g2000prf.googl egroups.com...
| 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 :-)
Aug 2 '07 #7
On 2007-08-02, gregarican <gr*********@gm ail.comwrote:
On Aug 2, 12:58 pm, "Terry Reedy" <tjre...@udel.e duwrote:
>"gregarican " <greg.kuj...@gm ail.comwrote in message

news:11******* **************@ q3g2000prf.goog legroups.com...
| 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.
Maybe not, but it seemed to be a reasonable characterisatio n 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.

--
Neil Cerutti
The pastor will preach his farewell message, after which the choir will sing,
"Break Forth Into Joy." --Church Bulletin Blooper
Aug 2 '07 #8

"gregarican " <gr*********@gm ail.comwrote in message
news:11******** **************@ i13g2000prf.goo glegroups.com.. .
| On Aug 2, 12:58 pm, "Terry Reedy" <tjre...@udel.e duwrote:
|| 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

Aug 2 '07 #9
gregarican a écrit :
(snip)
This link answers my question --http://www.google.com/search?hl=en&q...+list+rudeness.
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...
Aug 2 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2375
by: Emile van Sebille | last post by:
QOTW: "If we get 2.3.3c1 out in early December, we could release 2.3.3 final before the end of the year, and start 2004 with a 100% bug-free codebase <wink>." -- Tim Peters "cjOr proWe vbCould vbSettle prpFor noEnglish prpIn adjHungarian noNotation :-)" -- noPeter Jack Jensen reveals that python on mac continues as an osx option only...
0
1878
by: Emile van Sebille | last post by:
QOTW: "Have you ever used the copy module? I am *not* a beginner, and have used it *once* (and I can't remember what for, either)." -- Michael Hudson "It will likely take a little practice before this stuff rattles off your fingertips easily." -- Paul Rubin BJ MacNevin wants to run python from a CD....
0
1384
by: John J Lee | last post by:
QOTW: "...simple genexps will work fine anyway almost all the time, so it doesn't appear to matter much that devious uses will have nightmarish semantics." -- Tim Peters on Generator Expressions "It looks like ... a developer's cookbook (eg. the O'Reilly Python cookbook) but with less Reilly and more "Oh?"." -- Paul Boddie, on the...
0
323
by: Cliff Wells | last post by:
QOTW: "I find it hard to believe nobody has tried this yet, unless it's the case that those who know how to do it also know that it's actually not possible for some reason..." -- Peter Hansen http://mail.python.org/pipermail/python-list/2004-November/249134.html "Some people may actually want to drink poisoned kool-aid and join the great...
1
1401
by: Josiah Carlson | last post by:
QOTW: "Python, the language that wraps tightly around a problem and swallows it whole." -- Raymond Hettinger Because it is so important, this link is re-posted for the future (originally appeared in the December 15 Python-Url! posting by Cameron Laird): Martin Bless summarizes in an extremely valuable post what you need to know to...
0
1156
by: Josiah Carlson | last post by:
QOTW: "XML with elementtree is what makes me never have think about XML again." -- Istvan Albert "'Plays well with others' was a strong motivator for Python's design, and that often means playing by others' rules." -- Tim Peters Type mutability, and why some types are immutable. This has been discussed before, and should be a FAQ...
0
1322
by: Cameron Laird | last post by:
QOTW: "Really, of course, the only things you need to make explicit are the ones that readers don't understand." -- Steve Holden "Working with unicode objects in Python is so transparent, it's easy to forget about what a C extension would likely want." -- Kevin Dangoor "You take leadership in a small area, and you keep it as long as you...
0
1091
by: Simon Brunning | last post by:
QOTW: "It's not perfect, but then nobody in this thread has offered anything even remotely resembling perfect documentation for regular expressions yet. <wink>" - Peter Hansen "Python's flavor of OO is perfectly valid and usable, even though it doesn't follow the Java Holy Bible of Object Orientation (gasp!)" - Hans Nowak "It's highly...
0
1108
by: Simon Brunning | last post by:
QOTW: "Python is more concerned with making it easy to write good programs than difficult to write bad ones." - Steve Holden "Scientists build so that they can learn. Programmers and engineers learn so that they can build." - Magnus Lycka "It happens that old Java programmers make one module per class when they start using Python. That's...
0
4524
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 349 open ( +7) / 3737 closed (+25) / 4086 total (+32) Bugs : 939 open (-12) / 6648 closed (+60) / 7587 total (+48) RFE : 249 open ( -8) / 278 closed (+12) / 527 total ( +4) New / Reopened Patches ______________________
0
7374
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7632
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7783
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7392
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5931
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4930
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3430
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3422
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
996
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.