Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21525

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

From Paul Rubin <no.email@nospam.invalid>
Newsgroups comp.lang.python
Subject Re: html5lib not thread safe. Is the Python SAX library thread-safe?
References <4f5d0b82$0$11967$742ec2ed@news.sonic.net>
Date 2012-03-12 02:39 -0700
Message-ID <7x399e40pw.fsf@ruckus.brouhaha.com> (permalink)
Organization Nightsong/Fort GNOX

Show all headers | View raw


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

According to

  http://xmlbench.sourceforge.net/results/features200303/index.html

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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

html5lib not thread safe. Is the Python SAX library thread-safe? John Nagle <nagle@animats.com> - 2012-03-11 13:30 -0700
  Re: html5lib not thread safe. Is the Python SAX library thread-safe? Cameron Simpson <cs@zip.com.au> - 2012-03-12 08:45 +1100
    Re: html5lib not thread safe. Is the Python SAX library thread-safe? John Nagle <nagle@animats.com> - 2012-03-11 21:48 -0700
  Re: html5lib not thread safe. Is the Python SAX library thread-safe? Paul Rubin <no.email@nospam.invalid> - 2012-03-12 02:39 -0700
  Re: html5lib not thread safe. Is the Python SAX library thread-safe? Stefan Behnel <stefan_ml@behnel.de> - 2012-03-12 11:05 +0100
    Re: html5lib not thread safe. Is the Python SAX library thread-safe? John Nagle <nagle@animats.com> - 2012-03-12 09:07 -0700

csiph-web