This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon
Date 2014-09-22.15:51:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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
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.
Date User Action Args
2014-09-22 15:51:23Mark.Shannonsetrecipients: + Mark.Shannon
2014-09-22 15:51:23Mark.Shannonsetmessageid: <>
2014-09-22 15:51:23Mark.Shannonlinkissue22462 messages
2014-09-22 15:51:23Mark.Shannoncreate