[Python-ideas] Verbose traceback formatting

Masklinn masklinn at masklinn.net
Wed Aug 29 15:51:48 CEST 2012

On 29 août 2012, at 14:53, Ned Batchelder <ned at nedbatchelder.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. 

More information about the Python-ideas mailing list