A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-July/073939.html below:

[Python-Dev] Add a -z interpreter flag to execute a zip file

[Python-Dev] Add a -z interpreter flag to execute a zip file [Python-Dev] Add a -z interpreter flag to execute a zip fileJim 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4