This is more of a shell or env question, but I believe others here have
gone through this.
I want to run an optimized python using the portable /usr/bin/env, but
the obvious ways aren't working.
#!/usr/bin/env python -O
when I run ./test.py I get:
/usr/bin/env: python -O: No such file or directo
This is an old thread in this subject that I bookmarked:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/984262217c1b3727/8793a0b7722bb32f
--
http://mail.python.org/mailman/listinfo/python-list
When I'm using pyunit and want to stop in a point during the test
(skipping all the framework initialization), I just start the debugger:
import pdb
pdb.set_trace()
You'll get the debugger prompt.
--
http://mail.python.org/mailman/listinfo/python-list