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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22462>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to