diff options
author | Mickaƫl Schoentgen <contact@tiger-222.fr> | 2019-04-14 09:16:54 (GMT) |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-04-14 09:16:54 (GMT) |
commit | 929b70473829f04dedb8e802abcbd506926886e1 (patch) | |
tree | 6c0e66ff8e84eedf21dc36cfe87fb8967a09e6d5 /Doc/library/xml.sax.reader.rst | |
parent | e9927e1820caea01e576141d9a623ea394d43dad (diff) | |
download | cpython-929b70473829f04dedb8e802abcbd506926886e1.zip cpython-929b70473829f04dedb8e802abcbd506926886e1.tar.gz cpython-929b70473829f04dedb8e802abcbd506926886e1.tar.bz2 |
bpo-31658: Make xml.sax.parse accepting Path objects (GH-8564)
Diffstat (limited to 'Doc/library/xml.sax.reader.rst')
-rw-r--r-- | Doc/library/xml.sax.reader.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/xml.sax.reader.rst b/Doc/library/xml.sax.reader.rst index 1b6e431..113e9e9 100644 --- a/Doc/library/xml.sax.reader.rst +++ b/Doc/library/xml.sax.reader.rst @@ -102,13 +102,17 @@ The :class:`XMLReader` interface supports the following methods: Process an input source, producing SAX events. The *source* object can be a system identifier (a string identifying the input source -- typically a file - name or a URL), a file-like object, or an :class:`InputSource` object. When + name or a URL), a :class:`pathlib.Path` or :term:`path-like <path-like object>` + object, or an :class:`InputSource` object. When :meth:`parse` returns, the input is completely processed, and the parser object can be discarded or reset. .. versionchanged:: 3.5 Added support of character streams. + .. versionchanged:: 3.8 + Added support of path-like objects. + .. method:: XMLReader.getContentHandler() |