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

2012-03-12 Thread Paul Rubin
John Nagle na...@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

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

2012-03-12 Thread Stefan Behnel
John Nagle, 11.03.2012 21:30: html5lib is apparently not thread safe. (see http://code.google.com/p/html5lib/issues/detail?id=189;) Looking at the code, I've only found about three problems. They're all the usual cached in a global without locking bug. A few locks would fix that. But

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

2012-03-12 Thread John Nagle
On 3/12/2012 3:05 AM, Stefan Behnel wrote: John Nagle, 11.03.2012 21:30: html5lib is apparently not thread safe. (see http://code.google.com/p/html5lib/issues/detail?id=189;) Looking at the code, I've only found about three problems. They're all the usual cached in a global without locking

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

2012-03-11 Thread John Nagle
html5lib is apparently not thread safe. (see http://code.google.com/p/html5lib/issues/detail?id=189;) Looking at the code, I've only found about three problems. They're all the usual cached in a global without locking bug. A few locks would fix that. But html5lib calls the XML SAX parser.

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

2012-03-11 Thread Cameron Simpson
On 11Mar2012 13:30, John Nagle na...@animats.com wrote: | html5lib is apparently not thread safe. | (see http://code.google.com/p/html5lib/issues/detail?id=189;) | Looking at the code, I've only found about three problems. | They're all the usual cached in a global without locking bug. | A few

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

2012-03-11 Thread John Nagle
On 3/11/2012 2:45 PM, Cameron Simpson wrote: On 11Mar2012 13:30, John Naglena...@animats.com wrote: | html5lib is apparently not thread safe. | (see http://code.google.com/p/html5lib/issues/detail?id=189;) | Looking at the code, I've only found about three problems. | They're all the usual