Quoting Terry Carroll <[EMAIL PROTECTED]>:

> I've recently started using the construct 
> 
>  if __name__ == "__main__":
>  main()
> 
> And found I can't do the -i thing effectively any more. What's a good 
> equivalent approach?

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

Another possibility is to look at this recipe:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65287

-- 
John.
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to