[Python-ideas] Just __main__

Serhiy Storchaka storchaka at gmail.com
Tue Jun 19 10:14:47 CEST 2012

On 18.06.12 21:05, Andrew McNabb wrote:
> It might make sense to have "python -i" not call the "__main__"
> function, making it easier to interact with a script after the time that
> its methods and global variables are all defined but before the time
> that it enters __main__.

   python -i -c "from SCRIPT import *"

More information about the Python-ideas mailing list