Eli Bendersky added the comment:
Aaron - could you describe your use case of passing a custom parser into
iterparse? We're currently considering deprecating the feature of passing a
parser into iterparse in a future release (this is being discussed in issue
17741).
--
Aaron Oakley added the comment:
From memory, the use case at the time was using a custom TreeBuilder sub-class
fed into a builtin XMLParser object. The code would construct a builder
separately and keep a reference to it around. The builder would delegate calls
to start(), data(), end(), and
Eli Bendersky added the comment:
On Mon, Aug 26, 2013 at 7:11 PM, Aaron Oakley rep...@bugs.python.orgwrote:
Aaron Oakley added the comment:
From memory, the use case at the time was using a custom TreeBuilder
sub-class fed into a builtin XMLParser object. The code would construct a
Roundup Robot added the comment:
New changeset a5a5ba4f71ad by Eli Bendersky in branch '3.3':
Issue #17902: Clarify doc of ElementTree.iterparse
http://hg.python.org/cpython/rev/a5a5ba4f71ad
New changeset 96f45011957e by Eli Bendersky in branch 'default':
Issue #17902: Clarify doc of
Changes by Eli Bendersky eli...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17902
___
Aaron Oakley added the comment:
So sorry, I just found the emails from the bug tracker in my spam folder.
Anyhow, I've now signed the CLA.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17902
Eli Bendersky added the comment:
Aaron, could you please sign the PSF CLA
(http://www.python.org/psf/contrib/contrib-form/) - this will make it accepting
patches from you easier.
Other than that, I agree it's a legit patch. The alternative would be to fix
_elementtree to actually allow
New submission from Aaron Oakley:
It would really help to document that the C API can only use the default
xml.etree.ElementTree.TreeBuilder for targets with iterparse (and by extension,
IncrementalParser).
I got a nice surprise about that when I went from 3.2 to 3.3 and started
getting
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +eli.bendersky
stage: - patch review
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17902
___