[New-bugs-announce] [issue22462] Modules/pyexpat.c violates PEP 384
Mark Shannon
report at bugs.python.org
Mon Sep 22 17:51:23 CEST 2014
New submission from Mark Shannon:
Modules/pyexpat.c includes some archaic code to create temporary frames
so that, in even of an exception being raised, expat appears in the traceback.
The way this is implemented is a problem for three reasons:
1. It violates PEP 384.
2. It is incorrect, see http://bugs.python.org/issue6359.
3. It is inefficient, as a frame is generated for each call, regardless of whether an exception is raised or not.
The attached patch fixes these issues.
----------
components: Library (Lib)
files: expat.patch
keywords: patch
messages: 227278
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: Modules/pyexpat.c violates PEP 384
versions: Python 3.5
Added file: http://bugs.python.org/file36686/expat.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22462>
_______________________________________
More information about the New-bugs-announce
mailing list