Re: [Tutor] referring to subfolders

2009-01-17 Thread Kent Johnson
On Sat, Jan 17, 2009 at 12:20 AM, Che M wrote: > import os.path > self.currentdir = os.curdir > self.mysubfolder = os.path.join(self.currentdir, "subfolder") > path = self.mysubfolder + '/myfile.py' > > Is this really the only way to do it,and so I have to import > os.path each time I have a case

Re: [Tutor] Translating FORTRAN (77?) to Python?

2009-01-17 Thread bob gailer
Wayne Watson wrote: I may have a need down the line to convert a large number of lines of FORTRAN code to Python. Is there a good translator available to do this? I guess from the responses and Google Search that no such translator exists. It is possible but not trivial to write one. I probabl

Re: [Tutor] Translating FORTRAN (77?) to Python?

2009-01-17 Thread Wayne Watson
Title: Signature.html Yes, I sorted of wandered off in another direction and missed the connection. Sander Sweers wrote: On Fri, Jan 16, 2009 at 22:20, Wayne Watson wrote: Will that do me any good if I implement my application under Win Python? Your question was for a

Re: [Tutor] Translating FORTRAN (77?) to Python?

2009-01-17 Thread Wayne Watson
Title: Signature.html Many years ago I probably could too. I'm not interested anymore. It seems to me the one solution above is plenty good. See Whittier post. bob gailer wrote: Wayne Watson wrote: I may have a need down the line to convert a large number of lines of FORTRAN code to Pyth

[Tutor] Best Python3000 Tutorial for Beginner

2009-01-17 Thread Ian Egland
Hello all, I just joined this mailing list. I am a beginner to programming in general and would really appreciate a tutorial for Python3000 that at least covers the basics. I have tried reading the manual, but I think it was written for more experienced programmers wishing to switch to python rath

Re: [Tutor] Best Python3000 Tutorial for Beginner

2009-01-17 Thread Senthil Kumaran
On Sun, Jan 18, 2009 at 8:34 AM, Ian Egland wrote: > Hello all, I just joined this mailing list. > > I am a beginner to programming in general and would really appreciate a > tutorial for Python3000 that at least covers the basics. I have tried Hello Ian, That is a nice reason to get started with

[Tutor] Help with elif

2009-01-17 Thread Ian Egland
Wow, that was a quick response! Thanks all! I have looked at a couple tutorials and whipped this up. However, attempting to run it in IDLE results in a syntax error leaving my elif highlighted in red. What's wrong? I've looked at the code and can't find any syntax errors- though I've just started.

[Tutor] Fixed

2009-01-17 Thread Ian Egland
Found it- wasn't closing the ()'s in the print()'s. Thanks anyway, sorry for filling your inbox. -Ian ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help with elif

2009-01-17 Thread Kent Johnson
On Sat, Jan 17, 2009 at 10:21 PM, Ian Egland wrote: > I have looked at a couple tutorials and whipped this up. However, attempting > to run it in IDLE results in a syntax error leaving my elif highlighted in > red. What's wrong? I've looked at the code and can't find any syntax errors- > though I'

Re: [Tutor] Best Python3000 Tutorial for Beginner

2009-01-17 Thread Brian Mathis
In addition to what was already mentioned, I found "Think Python" useful. It is aimed at both learning programming in general, and it teaches in python specifically. However, it's written for python 2. http://www.greenteapress.com/thinkpython/thinkpython.html On Sat, Jan 17, 2009 at 10:04 PM, I