[docs] [issue10463] Wrong return value for xml.etree.ElementTree.parse()

Daniel Seither report at bugs.python.org
Fri Nov 19 22:31:56 CET 2010

New submission from Daniel Seither <post at 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 at python
components: Documentation
messages: 121571
nosy: docs at 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 at bugs.python.org>

More information about the docs mailing list