[New-bugs-announce] [issue15106] Potential Bug in errors.c

Ken Cheung report at bugs.python.org
Tue Jun 19 17:42:52 CEST 2012

New submission from Ken Cheung <msrbugzilla at gmail.com>:

I observed a code clone from the following files.

function : PyErr_Restore @ (file: "Python-3.3.0a4/Python/errors.c", line: 27)~49
function : PyErr_SetExcInfo @ (file: "Python-3.3.0a4/Python/errors.c", line: 341)~353

The function PyErr_Restore performs some checking on traceback while PyErr_SetExcInfo does not. I wonder if this is necessary in the function PyErr_SetExcInfo. The source code is included in the attachment. Hope it helps.

components: None
files: errors_clone.txt
messages: 163181
nosy: Ken.Cheung
priority: normal
severity: normal
status: open
title: Potential Bug in errors.c
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file26049/errors_clone.txt

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list