On 29 août 2012, at 14:53, Ned Batchelder email@example.com wrote:
On 8/29/2012 1:15 AM, Masklinn wrote:
and a command line switch to use it.
Adding the hook on `python -mcgitb script`? In the style of -mpdb?
This could also be a use for the proposed PYTHON_RUN_FIRST mechanism (http://bugs.python.org/issue14803). Instead of expecting cgitb to know how to be the main and run Python files, let the user specify a few lines of Python to run before their actual program. This has other uses as well, as outlined in the ticket.
Indeed, it could be.