On Mon, Oct 22, 2012 at 6:15 PM, Steven D'Aprano <st...@pearwood.info> wrote: > Not that. That unconditionally executes main the first time you access > the module, *regardless* of whether it is being run as a script or > being imported. That is nearly always the wrong thing to do.
Recently I've become a fan of executable packages. In __main__.py, it's always the right thing to do. -- Devin _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor