[pylucene-dev] monkeypatch threading

Andi Vajda vajda at osafoundation.org
Wed May 9 16:16:56 PDT 2007


On Wed, 9 May 2007, 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?

No objections, I applied your patch and committed PyLucene rev 330.
Thanks !

Andi..


More information about the pylucene-dev mailing list