New submission from Daniel Seither <p...@tiwoc.de>: Cite from http://docs.python.org/library/xml.etree.elementtree.html > xml.etree.ElementTree.parse(source, parser=None) > > Parses an XML section into an element tree. source is a filename or > file object containing XML data. parser is an optional parser > instance. If not given, the standard XMLParser parser is used. > Returns an ElementTree instance.
The last sentence should be "Returns an Element instance." I verified this error for the Python versions as listed in this issue. In 2.5, the information was imprecise but correct. ---------- assignee: d...@python components: Documentation messages: 121571 nosy: d...@python, tiwoc priority: normal severity: normal status: open title: Wrong return value for xml.etree.ElementTree.parse() versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10463> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com