Python in Optimized mode with /usr/bin/env

2005-11-22 Thread Paulo Eduardo Neves
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

Re: Well written open source Python apps

2005-10-18 Thread Paulo Eduardo Neves
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

Re: python -i (interactive environment)

2005-03-07 Thread Paulo Eduardo Neves
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