[issue21857] assert that functions clearing the current exception are not called with an exception set

2014-07-01 Thread STINNER Victor
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

[issue21857] assert that functions clearing the current exception are not called with an exception set

2014-06-24 Thread STINNER Victor
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

[issue21857] assert that functions clearing the current exception are not called with an exception set

2014-06-24 Thread STINNER Victor
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