[pylucene-dev] more test cases
Andi Vajda
vajda at osafoundation.org
Fri Mar 30 08:04:09 PST 2007
On Fri, 30 Mar 2007, Ofer Nave wrote:
> <http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html> path)|
> Returns the directory instance for the named location.
>
> But PyLucene didn't like that:
>
> ---
> [ofer at rnd01 ~/proj/search/trunk]$ ~/bin/foo.py
> PyLucene 2.1.0-1 Lucene 2.1.0-509013
> Traceback (most recent call last):
> File "/home/ofer/bin/foo.py", line 14, in <module>
> store = PyLucene.FSDirectory.getDirectory(directory)
> PyLucene.InvalidArgsError: (<type 'PyLucene.FSDirectory'>, 'getDirectory',
> ('/tmp/foo',))
Fixed.
> PS-Just checked one last thing - apparently, just importing PyLucene is
> enough to have the process reported as multi-threaded in the STAT column of
> 'ps'.
Yes, just importing PyLucene initializes libgcj and that starts its finalizer
thread. I also initialize python's threading at the same time.
Andi..
More information about the pylucene-dev
mailing list