diff options
author | Andrés Delfino <adelfino@gmail.com> | 2018-10-26 14:56:57 (GMT) |
---|---|---|
committer | Tal Einat <taleinat+github@gmail.com> | 2018-10-26 14:56:57 (GMT) |
commit | a6dc531063efe3a8d47ff4639729060c72a3688c (patch) | |
tree | 25f8f3c4a7883783103a4c6d73ee117aa50dc187 /Doc/library | |
parent | 10cb3760e8631a27f5db1e51b05494e29306c671 (diff) | |
download | cpython-a6dc531063efe3a8d47ff4639729060c72a3688c.zip cpython-a6dc531063efe3a8d47ff4639729060c72a3688c.tar.gz cpython-a6dc531063efe3a8d47ff4639729060c72a3688c.tar.bz2 |
bpo-34789: make xml.sax.make_parser accept iterables of all types (GH-9576)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/xml.sax.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/xml.sax.rst b/Doc/library/xml.sax.rst index aa3ea9b..0b6973b 100644 --- a/Doc/library/xml.sax.rst +++ b/Doc/library/xml.sax.rst @@ -40,10 +40,13 @@ The convenience functions are: Create and return a SAX :class:`~xml.sax.xmlreader.XMLReader` object. The first parser found will - be used. If *parser_list* is provided, it must be a sequence of strings which + be used. If *parser_list* is provided, it must be an iterable of strings which name modules that have a function named :func:`create_parser`. Modules listed in *parser_list* will be used before modules in the default list of parsers. + .. versionchanged:: 3.8 + The *parser_list* argument can be any iterable, not just a list. + .. function:: parse(filename_or_stream, handler, error_handler=handler.ErrorHandler()) |