[pylucene-dev] monkeypatch threading
Pete
pfein at pobox.com
Wed May 9 12:17:21 PDT 2007
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.
--
Peter Fein || 773-575-0694 || pfein at pobox.com
http://www.pobox.com/~pfein/ || PGP: 0xCCF6AE6B
irc: pfein at freenode.net || jabber: peter.fein at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PyLucene_threading.diff
Type: text/x-diff
Size: 439 bytes
Desc: not available
Url : http://lists.osafoundation.org/pipermail/pylucene-dev/attachments/20070509/5d2afb3a/PyLucene_threading.bin
More information about the pylucene-dev
mailing list