main in mac?
Park997
park997 at aol.comnotospam
Tue Mar 13 09:53:39 EST 2001
Hi,
I am using Python 2.0 on a PPC mac. I have a module
that is set up as follows:
from Numeric import *
class Epower:
3 class functions defined
if __name__ == '__main__':
test class and print output
This code does nothing if the run all button is pressed
or if it is imported into interactive python.
when the above if statement is replaced by:
if 1:
the program runs properly with output. I thought that
if __name__ == '__main__':
is standard syntax. Does this need to be changed for mac
Python?
Thanks,
Wendell Cropper
More information about the Python-list
mailing list