[IPython-dev] Ipython output uses the previous version of the file to show wrong code line.

Thomas Kluyver takowl at gmail.com
Sat Sep 14 17:52:36 EDT 2013


On 14 September 2013 12:31, MinRK <benjaminrk at gmail.com> wrote:

> Something is going wrong with caching the contents of the file for use
> when displaying the traceback. The cache isn't being updated, even though
> the file has changed.
>
> Perhaps someone with more intimate knowledge of the inner workings of %run
> and/or the traceback renderer can shed more light on it.
>

The relevant modules are linecache (in the standard library) and our
wrapper, ulinecache. I'll dig into this more on Monday.

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


More information about the IPython-dev mailing list