
Feb. 28, 2010
1:25 a.m.
Glenn Linderman wrote:
What I did was:
python -m test ren test.pyc foo.py foo.py
and it worked.
Source files mentioned on the command line aren't required to have a .py extension. I think what's happening is that the interpreter ignores the filename altogether in that case and examines the contents of the file to figure out what it is, in order to support running .pyc files from the command line. -- Greg