On 7/14/07, Andy C <[EMAIL PROTECTED]> wrote:
> On 7/13/07, Jim Jewett <[EMAIL PROTECTED]> 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
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com