[IPython-dev] fix_frame_records_filenames() messes up Cython tracebacks
Jeroen Demeyer
jdemeyer at cage.ugent.be
Thu Nov 20 11:18:12 EST 2014
On 2014-11-20 16:55, Matthias BUSSONNIER wrote:
> From your description, I suppose we could also whitelist extensions ?
Whitelisting/blacklisting is always more fragile. I prefer checking for
binary files instead.
It would also be good to understand better why the filename substitution
is needed.
Also interesting is that VerboseTB.structured_traceback() uses the
source lines from the original filename [those lines are read in
_fixed_getinnerframes()], not the changed filename. The changed filename
is only used to "Build the list of names on this line of code where the
exception occurred." (no idea what that means...)
More information about the IPython-dev
mailing list