[issue32797] Tracebacks from Cython modules no longer work
Jeroen Demeyer
report at bugs.python.org
Sun Aug 5 13:27:18 EDT 2018
Jeroen Demeyer <J.Demeyer at UGent.be> added the comment:
> So, where is the filename coming from?
Python 3.7.0 (default, Jul 23 2018, 10:07:21)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from sage.all import Integer
>>> try:
... Integer(1)/Integer(0)
... except Exception as e:
... E = e
>>> E.__traceback__.tb_next.tb_frame.f_code.co_filename
'sage/structure/element.pyx'
So this is the correct filename, relative to site-packages.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32797>
_______________________________________
More information about the Python-bugs-list
mailing list