[Tutor] using -i flag with '''if __name__ == "__main__":'''

Terry Carroll carroll at tjc.com
Wed May 18 01:32:49 CEST 2005


On Wed, 18 May 2005 jfouhy at paradise.net.nz wrote:

> If main is a class, you could change to 'm = main()'; that would at
> least give you access to the class attributes.

Interesting approach; I'm refering to where main() is a method, the usual 
python idiom.




More information about the Tutor mailing list