summaryrefslogtreecommitdiff
path: root/Doc/library/xml.sax.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-04 10:12:26 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-04 10:12:26 +0300
commit778db289b5a1968c67db195572f2384489cca20c (patch)
treebfff3b855d5beeda067bfe7e19d499158c4593d2 /Doc/library/xml.sax.rst
parentf8aa133cce70472ec7baa21c8b073891101dce15 (diff)
downloadcpython-git-778db289b5a1968c67db195572f2384489cca20c.tar.gz
Issue #10590: xml.sax.parseString() now supports string argument.
Diffstat (limited to 'Doc/library/xml.sax.rst')
-rw-r--r--Doc/library/xml.sax.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/xml.sax.rst b/Doc/library/xml.sax.rst
index e95d6b0f85..55f97999de 100644
--- a/Doc/library/xml.sax.rst
+++ b/Doc/library/xml.sax.rst
@@ -47,7 +47,11 @@ The convenience functions are:
.. function:: parseString(string, handler, error_handler=handler.ErrorHandler())
Similar to :func:`parse`, but parses from a buffer *string* received as a
- parameter.
+ parameter. *string* must be a :class:`str` instance or a
+ :term:`bytes-like object`.
+
+ .. versionchanged:: 3.5
+ Added support of :class:`str` instances.
A typical SAX application uses three kinds of objects: readers, handlers and
input sources. "Reader" in this context is another term for parser, i.e. some