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

STINNER Victor report at bugs.python.org
Tue Jun 24 11:49:31 CEST 2014


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 will open a new patch for that.

I already added similar checks in functions of Python/ceval.c.

----------
files: assert_exc.patch
keywords: patch
messages: 221444
nosy: haypo
priority: normal
severity: normal
status: open
title: assert that functions clearing the current exception are not called with an exception set
versions: Python 3.5
Added file: http://bugs.python.org/file35767/assert_exc.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21857>
_______________________________________


More information about the New-bugs-announce mailing list