[Python-ideas] Verbose traceback formatting

Masklinn masklinn at masklinn.net
Wed Aug 29 08:11:58 CEST 2012

On 2012-08-29, at 07:15 , Masklinn wrote:
>> and a command line switch to use it.
> Adding the hook on `python -mcgitb script`? In the style of -mpdb?

Thinking about it more, this could be a nice starting point for a
`traceback2` project:

* Add stack frame formatting (by name, format string and function)
  to traceback's functions
* Add formatting exechook handling (and -m switch) to traceback
* Move/reimplement the meat of cgitb using traceback's stack frame formats
* Maybe move the `html` formatter to wsgiref and add a trace-formatting
  middleware which could be dropped in about any WSGI stack

More information about the Python-ideas mailing list