[lxml-dev] ERESTARTNOHAND error (solved)
Stefan Behnel
stefan_ml at behnel.de
Fri Aug 31 13:45:20 CEST 2007
Frédéric Mantegazza wrote:
> Le vendredi 31 août 2007 11:31, Stefan Behnel a écrit :
>> The problem is not how many threads there are but where you create an
>> XSLT object and where you use it. Try creating it in the thread where you
>> use it.
>
> Ok, I got it! I was retreiving my filters from a FilterManager using a get()
> method, which was returning a deepcopy of the filters, which does not work.
> It is not surprising, as lxml is written in C (pyrex): I think pointers and
> other references where lost in the operation.
Ah, right, deep copying XSLT objects doesn't work. I'd say it should work,
though. I'll look into it.
> BTW, my XSLT objects are created in a thread, and used in another, but it
> does not seems to be a problem.
It should work in most cases, but it can be a source of problems in others. If
it works for you, you should be fine.
> Stefan, thanks your very much for the usefull suggestions :o)
J't'en prie.
Stefan
More information about the lxml-dev
mailing list