[Tutor] please unsubscribe me

2007-03-08 Thread itpro4470
ost", user = "user", psswd >= >>"" db = "testdb") >>cursor = conn.cursor() >> >>infile = open(sys.argv[2], 'r') >>list_of_tuples = [] >>for line in infile: >>tuple = (line.split()[0], line.split()[

Re: [Tutor] Best IDE for python?

2007-03-08 Thread Dick Moores
At 02:17 PM 3/8/2007, Rikard Bosnjakovic wrote: >On 3/8/07, Joydeep Mitra <[EMAIL PROTECTED]> wrote: > > > I would like to know what's the best IDE for python (having all important > > IDE features like debug, etc), other than IDLE. > >Which IDE to use is no more than a matter of taste and laziness

Re: [Tutor] Best IDE for python?

2007-03-08 Thread Rikard Bosnjakovic
On 3/8/07, Joydeep Mitra <[EMAIL PROTECTED]> wrote: > I would like to know what's the best IDE for python (having all important > IDE features like debug, etc), other than IDLE. Which IDE to use is no more than a matter of taste and laziness. Myself, I use Emacs (as for to everything). -- - Ri

Re: [Tutor] Digital-to- Roman (pseudocode)

2007-03-08 Thread Alan Gilfoy
Quoting Bob Gailer <[EMAIL PROTECTED]>: >> >> Digital to Roman pseudocode: >> >> 1. if digital_input is greater than 1000: >> subtract 1000 from it and add "M" to string roman_result >> # How do you do that, add one character to the end of an existing string? >> > Start with an empty string: > > r

Re: [Tutor] White spaces in a path (from a string variable) and os.popen on Windows

2007-03-08 Thread learner404
On 3/8/07, Jerry Hill <[EMAIL PROTECTED]> wrote: > result=os.popen("dir "+dirPath).read() to this: result=os.popen('dir "%s"' % dirPath).read() That worked fine with all the directories I threw at it. Thanks a lot Jerry ! :) I didn't think of doing it this way.

Re: [Tutor] Roman to digital (pseudocode)

2007-03-08 Thread Adam Bark
On 08/03/07, Alan Gilfoy <[EMAIL PROTECTED]> wrote: This, I heard, is more difficult than digital-to-Roman, since you have to "read" the subtractive cases, with a smaller numeral placed before a larger numeral, without simply adding all the numerals' values up I'm going to use a raw_input promp

Re: [Tutor] What/Why this Cookbook recipe?

2007-03-08 Thread Andrei
> > - format strings can be used to translate an application. You just give > > the translator your 'Name: %s' string and he gives you 'Borkbork: %s' or > > whatever. The translation doesn't need to be modified if you decide to > > make a user class and get rid of the username and userage vars.

Re: [Tutor] Digital-to- Roman (pseudocode)

2007-03-08 Thread Bob Gailer
Alan Gilfoy wrote: > Quoting Bob Gailer <[EMAIL PROTECTED]>: > > >> Make sure each step >> is one simple operation. Walk thru the steps to verify that you have >> them correct. >> > > Bob, your email did inspire me on how I would express the process in > computer-processing terms. > > Her

Re: [Tutor] Digital-to- Roman (pseudocode)

2007-03-08 Thread Mike Hansen
I think Dive Into Python has examples of digital to Roman and it might have Roman to digital. Might be worth looking at after you've come up with a solution. Mike ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] White spaces in a path (from a string variable) and os.popen on Windows

2007-03-08 Thread Jerry Hill
On 3/8/07, learner404 <[EMAIL PROTECTED]> wrote: > When I know exactly the path in advance I use a raw string r' ' and I add > double quotes where necessary to avoid the white spaces syndrome. But I > don't see how to do this "easily" when my path is a string variable given by > my GUI (like C:\Doc

Re: [Tutor] Digital-to- Roman (pseudocode)

2007-03-08 Thread Alan Gilfoy
Quoting Bob Gailer <[EMAIL PROTECTED]>: > Make sure each step > is one simple operation. Walk thru the steps to verify that you have > them correct. Bob, your email did inspire me on how I would express the process in computer-processing terms. Here's how I'd break down the steps, using "pseud

Re: [Tutor] Parsing Word Docs

2007-03-08 Thread Tim Golden
Stephen Nelson-Smith wrote: > Hello all, > > I have a directory containing a load of word documents, say 100 or so. > which is updated every hour. > > I want a cgi script that effectively does a grep on the word docs, and > returns each doc that matches the search term. > > I've had a look at do

[Tutor] building an interactive deamon

2007-03-08 Thread Thanos Panousis
So here goes my first question to the list. I can't really describe in precise words what I need, therefore it is difficult to google for an answer. I am building a system that is supposed to run as a daemon. This daemon will of course depend on some configuration variables that are read during t

[Tutor] Roman to digital (pseudocode)

2007-03-08 Thread Alan Gilfoy
This, I heard, is more difficult than digital-to-Roman, since you have to "read" the subtractive cases, with a smaller numeral placed before a larger numeral, without simply adding all the numerals' values up I'm going to use a raw_input prompt to ask the user which Roman numeral he/she want

[Tutor] White spaces in a path (from a string variable) and os.popen on Windows

2007-03-08 Thread learner404
Hello, I'm getting crazy with white spaces on Windows. :( I'm aware of the three paths gotchas on Windows well explained here: http://www.freenetpages.co.uk/hp/alan.gauld/tutfiles.htm But my problem is with white spaces in windows paths (very common with "program files", "documents and settings

[Tutor] Parsing Word Docs

2007-03-08 Thread Stephen Nelson-Smith
Hello all, I have a directory containing a load of word documents, say 100 or so. which is updated every hour. I want a cgi script that effectively does a grep on the word docs, and returns each doc that matches the search term. I've had a look at doing this by looking at each binary file and re

Re: [Tutor] Roman Numeral to Digital

2007-03-08 Thread Bob Gailer
Kent Johnson wrote: > Hi Alan, > > I am forwarding your question to tutor@python.org which is the correct > address for the list. [EMAIL PROTECTED] sends questions to the > *maintainers* of the list, not the list itself. > > Kent > > Alan Gilfoy wrote: > >> I am learning how to program in pyth

Re: [Tutor] Best IDE for python?

2007-03-08 Thread Ton van Vliet
On Thu, 8 Mar 2007 17:52:06 +0530, you wrote: >Hi all, >I'm a new user of the python programming language. >I would like to know what's the best IDE for python (having all important >IDE features like debug, etc), other than IDLE. >Thanking in advance >Joy There are some ShowMeDo videos that coul

Re: [Tutor] Best IDE for python?

2007-03-08 Thread Luke Paireepinart
Joydeep Mitra wrote: > Hi all, > I'm a new user of the python programming language. > I would like to know what's the best IDE for python (having all > important IDE features like debug, etc), other than IDLE. > Thanking in advance Did you read the Tutor FAQ you got when you signed up for the list

[Tutor] Best IDE for python?

2007-03-08 Thread Joydeep Mitra
Hi all, I'm a new user of the python programming language. I would like to know what's the best IDE for python (having all important IDE features like debug, etc), other than IDLE. Thanking in advance Joy ___ Tutor maillist - Tutor@python.org http://ma

Re: [Tutor] about __std__ zip file

2007-03-08 Thread Kent Johnson
Glenfiddich apayart wrote: > hi, > > This is my first day and first time i knew about python. i know now how > to handle the python GUI. i just have a small question about the __std > zip file. i've read about it on danny website. this is the link >

Re: [Tutor] Roman Numeral to Digital

2007-03-08 Thread Kent Johnson
Hi Alan, I am forwarding your question to tutor@python.org which is the correct address for the list. [EMAIL PROTECTED] sends questions to the *maintainers* of the list, not the list itself. Kent Alan Gilfoy wrote: > I am learning how to program in python as a major component of my > school's

[Tutor] about __std__ zip file

2007-03-08 Thread Glenfiddich apayart
hi, This is my first day and first time i knew about python. i know now how to handle the python GUI. i just have a small question about the __std zip file. i've read about it on danny website. this is the link .Where should i extract the file? im thinking if i would put it on my Lib folder.