Re: [Tutor] Working with IDLE in XP, Set Up for A New Program

2009-01-10 Thread Wayne Watson
Title: Signature.html I immediately answered my own question by clicking on a link that took me to a web site with the pdf; however, it looks like I installed Python 2.6. It'll be easy to uninstall, but I don't see 2.5 -- yet. Wayne Watson wrote: Hi, this is a continuation of my post from

Re: [Tutor] Working with IDLE in XP, Set Up for A New Program

2009-01-10 Thread Wayne Watson
Title: Signature.html Hi, this is a continuation of my post from way back in August. I just installed Pythonwin. It's showing me a window for "Dive into Python". Apparently, it's an extensive document. How do I determine how many pages there are, and do I print the whole thing section by sectio

Re: [Tutor] How do we upload multiple files simultaneously?

2009-01-10 Thread W W
On Sat, Jan 10, 2009 at 4:19 PM, Lie Ryan wrote: > On Fri, 09 Jan 2009 21:48:51 -0800, john dow wrote: > > > Dear All, > > > > I a newbie to python... > > > > my problem is to upload more than one file on a single go. I have an > > option open is using some FTP client... > > > > You might be int

Re: [Tutor] How do we upload multiple files simultaneously?

2009-01-10 Thread Lie Ryan
On Fri, 09 Jan 2009 21:48:51 -0800, john dow wrote: > Dear All, > > I a newbie to python... > > my problem is to upload more than one file on a single go. I have an > option open is using some FTP client... > You might be interested with Twisted. Alternatively you might also be interested wi

Re: [Tutor] changing string in place

2009-01-10 Thread Paul McGuire
Sometimes pyparsing is less stressful than struggling with RE's typoglyphics, especially for a one-off conversion (also note handling of quoted strings - if a 'new Date(y,m,d)' occurs inside a quoted string, this script *won't* convert it): from pyparsing import nums,Word,Literal,quotedString # p

[Tutor] Thanks

2009-01-10 Thread prasad rao
Hello Your code is concise and neat.It will take some time for me to understand how it is doing the job. Thank you >You have a lot of duplicated code. You can reduce the duplication by >using functions and loops. >The first step is to put all the print code into a function rather >than repe

Re: [Tutor] Python debugger

2009-01-10 Thread Kent Johnson
On Sat, Jan 10, 2009 at 7:37 AM, jadrifter wrote: > Despite the name I believe Winpdb is platform independent Yes, it is, it is windows as in GUI not windows as in Microsoft. Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/l

Re: [Tutor] Yield and recursion

2009-01-10 Thread Kent Johnson
On Fri, Jan 9, 2009 at 10:15 PM, Justin wrote: > However when I attempt to convert preorder() to a generator and > iterate over the results things don't go as planned: > > def preorder(tree, index, path=[]): >if index >= len(tree): return >path = path + [tree[index]] >yield path >

Re: [Tutor] multiplication table

2009-01-10 Thread Kent Johnson
On Sat, Jan 10, 2009 at 6:01 AM, prasad rao wrote: > Hi > I tried to print multiplication table using (*args) to pass parameters.and > tried > to print tables side by side.But the code looks messy .Is there a better way > to do it. > def mtab(*arg): > for x in range(1,11): > print '%3d'%(x),'x','

[Tutor] How do we upload multiple files simultaneously?

2009-01-10 Thread john dow
Dear All, I a newbie to python... my problem is to upload more than one file on a single go. I have an option open is using some FTP client... Is there any other methods like what mega upload uses??? thanks in advace.. regards, john -- View this message in context: http://www.nabble.com

[Tutor] Yield and recursion

2009-01-10 Thread Justin
Hello, I am new to Python and I'm having trouble with generators. I have built a tree (and verified that it looks good, and my left() and right() functions are correct as well), and I am able to traverse it as I would expect: def preorder(tree, index, path=[]): if index >= len(tree): return

Re: [Tutor] Python debugger

2009-01-10 Thread jadrifter
Despite the name I believe Winpdb is platform independent I haven't used it myself but I looked into it while following this thread. http://winpdb.org/ John Purser On Sat, 2009-01-10 at 12:56 +0100, Michael Bernhard Arp Sørensen wrote: > It might and I'll keep it in mind. > > However, I'm not

Re: [Tutor] Python debugger

2009-01-10 Thread Michael Bernhard Arp Sørensen
It might and I'll keep it in mind. However, I'm not going to ditch my linux just to get a gui debugger. After all, I do have WingIDE installed in Linux, but I wanted to be free of the GUI limitations I have when I code on a host that I connect to through a minicom on another ssh host. I do that fr

[Tutor] multiplication table

2009-01-10 Thread prasad rao
HiI tried to print multiplication table using (*args) to pass parameters.and tried to print tables side by side.But the code looks messy .Is there a better way to do it. def mtab(*arg): for x in range(1,11): print '%3d'%(x),'x','%3d'%(arg[0]),'=','%3d'%(x*arg[0]),(' '*5),\ '%3d'%(x),'x','%3d'%(a