STINNER Victor added the comment:

> That last commit fixed compatibility with Django.

Good.

> Instead of an assert(), you could use Py_FatalError() at the end of 
> _Py_CheckFunctionResult().

_Py_CheckFunctionResult() now calls Py_FatalError() in debug mode. By the way, 
I fixed various issues in Py_FatalError() to be able to display the exception 
and the traceback in more cases.

@Serhiy: Are you ok with that?

Can I close the issue?

FYI I write the PEP 490 as a "spin off" of this issue, to continue my work on 
the enhancement of exceptions in the C code: "PEP 490 - Chain exceptions at C 
level".

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23571>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to