[Python-Dev] Add a -z interpreter flag to execute a zip file
Jim Jewett
jimjjewett at gmail.com
Sun Jul 15 00:29:18 CEST 2007
On 7/14/07, Andy C <andychup at gmail.com> wrote:
> On 7/13/07, Jim Jewett <jimjjewett at gmail.com> wrote:
> > > while I think it would be a bad practice to
> > > import __main__,
> > I have seen it recommended as the right place to store global
> > (cross-module) settings.
> Where? People use __main__.py now?
No; they don't use a file. It is treated as a strictly dynamic
scratchpad, and they do things like
import __main__
__main__.DEBUGLEVEL=5
if __main__.myvar: ...
-jJ
More information about the Python-Dev
mailing list