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 Shugyousha
Recipients Shugyousha, adrian_nye, docs@python, effbot, flox
Date 2011-11-25.15:22:07
SpamBayes Score 3.7757668e-06
Marked as misclassified No
Message-id <1322234528.94.0.959215612769.issue9708@psf.upfronthosting.co.za>
In-reply-to
Content
I changed a few lines in the glue code of the _elementtree.c Module of Python 3.3.0a0 to add support for the "parser" argument. I do have to admit though that I am not familiar with the Python/C-API so this solution may not be ideal (i. e. it may be falling back to the Python implementation of iterparse without me realizing).

Please note that it is not possible to give an ElementTree.XMLParser instance as a parameter to the cElementTree.iterparse function (which may not be desirable in any case) using this patch.

I assume that the patch will be applicable to Python 2.7.x as well, but I did not try it. I can apply/adapt it to Python 2.7.x, if you think that would be useful.
History
Date User Action Args
2011-11-25 15:22:09Shugyoushasetrecipients: + Shugyousha, effbot, flox, docs@python, adrian_nye
2011-11-25 15:22:08Shugyoushasetmessageid: <1322234528.94.0.959215612769.issue9708@psf.upfronthosting.co.za>
2011-11-25 15:22:08Shugyoushalinkissue9708 messages
2011-11-25 15:22:08Shugyoushacreate