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 Peter.Harris
Recipients Peter.Harris, docs@python
Date 2013-10-30.13:57:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383141446.52.0.417040462191.issue19452@psf.upfronthosting.co.za>
In-reply-to
Content
Documentation on python website says:

    xml.etree.ElementTree.iterparse(source, events=None, parser=None)
Parses an XML section into an element tree incrementally, and reports what’s going on to the user. source is a filename or file object containing XML data. events is a list of events to report back.

But 'events' must be a *tuple* or iterparse raises "TypeError: invalid event tuple"

Possibly also worth explaining that "start-ns" event is accompanied by a tuple of (namespace, url) rather than an element from the XML document. Currently the description just says "ns events are used to get detailed namespace information" but doesn't say how or give an example.
History
Date User Action Args
2013-10-30 13:57:26Peter.Harrissetrecipients: + Peter.Harris, docs@python
2013-10-30 13:57:26Peter.Harrissetmessageid: <1383141446.52.0.417040462191.issue19452@psf.upfronthosting.co.za>
2013-10-30 13:57:26Peter.Harrislinkissue19452 messages
2013-10-30 13:57:26Peter.Harriscreate