At 02:58 PM 7/14/2007 +1200, Greg Ewing wrote:
>Andy C wrote:
> > What does "if __name__ == '__main__" mean in
> > __main__.py? : ) If someone tries does import __main__ from another
> > module in the program, won't that result in an infinite loop?
>
>Is there a reason not to use __init__.py for
Jim Jewett wrote:
> If anything, I would like to see the -m option enhanced so that if it
> gets a recognized "collection" file type (including a directory or
> zip), it does the right thing. Whether that actually makes sense, or
> defeats the purpose of the -m shortcut, I'm not sure.
-m deals wi
On 7/13/07, Jim Jewett <[EMAIL PROTECTED]> wrote:
> Andy C wrote:
> >... a .zip file with a __zipmain__.py module at its root?
>
> Why not just an __init__.py, which you would normally execute if you
> tried to import/run a directory?
>
> > * Magically looking at the first argument to see if it's a
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 r
At 03:28 AM 7/15/2007 +1000, Nick Coghlan wrote:
>Jim Jewett wrote:
> > If anything, I would like to see the -m option enhanced so that if it
> > gets a recognized "collection" file type (including a directory or
> > zip), it does the right thing. Whether that actually makes sense, or
> > defeats
> That said, there are always strong arguments in
> favour of the distributed model encouraging and fostering community
> dev participation
Just for the record: Python's development model *is* distributed,
and has been for a long time. We don't all work in the same office,
or even in the same time
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__.
ACTIVITY SUMMARY (07/08/07 - 07/15/07)
Tracker at http://bugs.python.org/
To view or respond to any of the issues listed below, click on the issue
number. Do NOT respond to this message.
1646 open ( +1) / 8584 closed ( +0) / 10230 total ( +1)
Average duration of open issues: 856 days.
Medi