[issue34789] doc xml.sax.make_parser expects a list not just any sequence

Fred L. Drake, Jr. report at bugs.python.org
Mon Sep 24 12:24:40 EDT 2018


Fred L. Drake, Jr. <fdrake at gmail.com> added the comment:

I'm just going to presume this issue has been around a long time, but I think that's a pretty safe presumption.

Accepting a general sequence instead of only a list would reasonable, and I'd support a fix that caused the code to accept a general sequence (or any iterable) by calling list() on the passed-in value, starting with 3.8.

The patch provided looks good for versions in maintenance.  (It would also be fine for 3.8 if there's no interest in generalizing the code to accept arbitrary iterables).

----------
nosy: +fdrake

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34789>
_______________________________________


More information about the Python-bugs-list mailing list