[IPython-dev] An idea: unique synthetic filenames

Hans Meine hans_meine at gmx.net
Wed Sep 24 08:22:28 EDT 2008


Am Montag, 22. September 2008 23:23:35 schrieb Robert Kern:
> Currently, for each In[], we compile the input to a code object with a fake
> filename like "<string>" or "<ipython console>". If we were to generate a
> unique fake filename for each input, say "<ipython console 10>" to
> correspond with In[10], we could then stuff the text into linecache. This
> will be used in tracebacks and other similar tools (like my line_profiler).

Nice idea!  Even without the linecache, I'd like the more verbose source 
indication.

Greetings,
  Hans



More information about the IPython-dev mailing list