Hi, Pythoneers Let me first say i've been on Python now for the last eight months.
The only problem is that my Python interactive interpreter seems to work pretty good bud executing a file of Python code from the command line(ms-dos, bash) with the preceding pyhton never works. Only when you write a single body statement like: (print x) ore something.
In the documents that ive been purchasing there is always written that the python interpreter always executes lines of code in a .py file from top to bottum now matter what order the lines are placed even in the book Programming pyhthon al of the books examples are placed pretty logical. Just in a line by line sequence.
But i seem to only get errors it almost seems like you have to code your .py modules in a surrtain kind of manner.
Can this be true i really would like to now so i can also build larger python programs without using the Python interactive interpreter!
I'm writing python programs straight from VI, save'em as 'filename.py' and run'em from the terminal as 'python filename.py' in FC1 (old 400MHz machine). All I did was install the latest python engine (python 2.4). So maybe you don't have the (correct) python engine installed on your system(s)? What kind of errors do you get?