[issue10463] Wrong return value for xml.etree.ElementTree.parse()
New submission from Daniel Seither <post@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: docs@python components: Documentation messages: 121571 nosy: docs@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 <report@bugs.python.org> <http://bugs.python.org/issue10463> _______________________________________
Changes by Daniel Seither <post@tiwoc.de>: ---------- title: Wrong return value for xml.etree.ElementTree.parse() -> Wrong return type for xml.etree.ElementTree.parse() _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10463> _______________________________________
Daniel Seither <post@tiwoc.de> added the comment: I need to read more accurately what is printed on my console... Forget about it. ---------- resolution: -> works for me status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10463> _______________________________________
Changes by Éric Araujo <merwok@netwok.org>: ---------- resolution: works for me -> invalid stage: -> committed/rejected _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10463> _______________________________________
participants (2)
-
Daniel Seither
-
Éric Araujo