PEP 338: Executing modules inside packages with '-m'

Just just at xs4all.nl
Tue Dec 14 12:10:18 CET 2004


In article <mailman.7688.1103013695.5135.python-list at python.org>,
 "Fredrik Lundh" <fredrik at pythonware.com> wrote:

> Just wrote:
> 
> 
> >> as for the rest of your arguments, I have to assume that you were joking.
> >> (or
> >> that you have no experience whatsoever of distribution of Python programs 
> >> in
> >> Unix and Windows environments).
> >
> > Whatever. You suggestion does not work in many cases. How about a
> > program that starts threads? Can't do that as a side effect of import.
> 
> my suggestion was to make sure that the user can type "bar arg" to start a
> Python program called "bar" with the argument "arg".  that's trivial, on all
> major platforms, despite what Nick says -- and yes, you can start threads
> from a program named "bar".  try it.

This subthread was specifically about your

   python -c "import foo.bar" arg

suggestion.

Just



More information about the Python-list mailing list