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

Fredrik Lundh fredrik at
Tue Dec 14 09:27:40 CET 2004

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.


More information about the Python-list mailing list