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/073936.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 fileFred L. Drake, Jr. fdrake at acm.org
Sat Jul 14 19:55:50 CEST 2007
On Saturday 14 July 2007, Andy C wrote:
 > I don't mind calling it -z and using it for directories.  But mainly
 > that's because no one has proprosed another name. : )  I think we've
 > agreed that -p is something totally different.

We could use -r ("run"), or -X ("execute"); not sure those are really right 
either.

 > > > 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?  That seems bad, because __ names
 > are reserved, so they should just use main.py, I would think.

I've seen __main__ suggested as a place to store application-specific global 
settings, but not for a long time.  I don't think it was ever mapped directly 
to a file on disk though.

I find the idea really hackish.


  -Fred

-- 
Fred L. Drake, Jr.   <fdrake at acm.org>
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