diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-04 07:12:26 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-04 07:12:26 (GMT) |
commit | 778db289b5a1968c67db195572f2384489cca20c (patch) | |
tree | bfff3b855d5beeda067bfe7e19d499158c4593d2 /Doc | |
parent | f8aa133cce70472ec7baa21c8b073891101dce15 (diff) | |
download | cpython-778db289b5a1968c67db195572f2384489cca20c.zip cpython-778db289b5a1968c67db195572f2384489cca20c.tar.gz cpython-778db289b5a1968c67db195572f2384489cca20c.tar.bz2 |
Issue #10590: xml.sax.parseString() now supports string argument.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/xml.sax.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/xml.sax.rst b/Doc/library/xml.sax.rst index e95d6b0..55f9799 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 |