[pylucene-dev] monkeypatch threading
Andraž Tori
andraz.tori1 at guest.arnes.si
Wed May 9 16:29:59 PDT 2007
Whoa, IPC was great solution, this is even better!
Does this work with mod_python also?
Do you happen to know/have a suggestion here is the proper place to put
it in a Django framework?
bye
andraz
On Wed, 2007-05-09 at 14:17 -0500, Pete wrote:
> Attached is a simple patch to enable monkeypatching the standard library's
> threading module. One would use it like:
>
> import PyLucene
> PyLucene.monkeypatch()
>
> *before* importing any other modules that used `threading` (in other words, at
> the start of your program). This seems like the easiest way to solve the
> all-threads-must-be-PyLucene.PythonThread problem and should work with both
> 2.4 and 2.5.
>
> Andi, any objection to including it in future releases?
>
> --Pete
>
> PS - No, this will not allow PyLucene to be used under mod_python.
>
> _______________________________________________
> pylucene-dev mailing list
> pylucene-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
More information about the pylucene-dev
mailing list