Guido van Rossum added the comment:

Sorry, I missed the part where you said "we can't depend on PyPI".

There already is something in the stdlib that may be close enough to what 
you're looking for -- checkout cgitb.py.  The following might even work:

import cgitb
cgitb.enable(format='text')

That code is very old and primarily meant for CGI scripts (that shows how old 
it is!) but it still works.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22937>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to