[Python-ideas] Verbose traceback formatting

Ned Batchelder ned at nedbatchelder.com
Wed Aug 29 14:53:43 CEST 2012


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.

--Ned.



More information about the Python-ideas mailing list