[IPython-dev] An idea: unique synthetic filenames

Robert Kern robert.kern@gmail....
Mon Sep 22 16:23:35 CDT 2008


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).

Worth a shot?

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco



More information about the IPython-dev mailing list