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