html5lib not thread safe. Is the Python SAX library thread-safe?

Paul Rubin at nospam.invalid
Mon Mar 12 10:39:39 CET 2012

John Nagle <nagle at> writes:
>    But html5lib calls the XML SAX parser. Is that thread-safe?
> Or is there more trouble down at the bottom?

According to

libxml and expat both purport to be thread-safe.  I've used the python
expat library (not from multiple threads) and it works fine, though the
python calls slow it down by worse than an order of magnitude.

More information about the Python-list mailing list