STINNER Victor added the comment:
I don't think anymore that it's a good idea. Almost all C functions can replace
the current Python exception. There is no reason to add assertions only in a
few functions.
--
resolution: - not a bug
status: open - closed
New submission from STINNER Victor:
Attached patch detects (when Python is compiled in debug mode) if functions
that may clear the current exception are called with an exception set.
The check avoids loosing an exception.
The problem is that the test_sqlite fails with the patch applied. I
STINNER Victor added the comment:
The problem is that the test_sqlite fails with the patch applied. I will open
a new patch for that.
I opened the issue #21858 for that.
--
___
Python tracker rep...@bugs.python.org