[IPython-dev] Undoing transforms in tracebacks

Thomas Kluyver takowl at gmail.com
Mon Nov 24 15:49:12 EST 2014


On 24 November 2014 at 12:23, Jeroen Demeyer <jdemeyer at cage.ugent.be> wrote:

> How would you feel about storing both the untransformed and transformed
> lines and displaying the *untransformed* lines in a traceback?
>

We already store both the transformed and untransformed code. For IPython's
uses, I think it's more helpful to show the transformed code in tracebacks,
so that it's clear what an error is actually about. But I wouldn't be
against making it possible for Sphinx to override that and show
untransformed code, if it can be done without adding much complexity.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141124/28c631ef/attachment.html>


More information about the IPython-dev mailing list