Re: script vs inneractive

2006-05-25 Thread Robert Kern
Dennis Lee Bieber wrote: > If that "return 1" is the last line in the program, at the most it > will be treated as a return code to the OS signaling that the program > succeeded or failed. I'm not really sure how Python handles a return > from main program. It's a syntax error. -- Robert K

Re: script vs inneractive

2006-05-25 Thread vbgunz
the interactive shell will immediatly show the result of an expression without you having to explicitly print the result. In all text editor, you will have to print the result if you wish to see it. -- http://mail.python.org/mailman/listinfo/python-list

script vs inneractive

2006-05-25 Thread Alex Pavluck
I am a little confused because I write most of my programs in a script editor but not all the code executes unless I run it from the inneractive shell. Am I doing something wrong? A good example is "return 1" in a script returns nothing where as in the inneractive shell it will return 1 or true.