On Fri, 30 Mar 2007, Ofer Nave wrote:

I was reading through the Pythonic Extensions section of the README while porting it to the wiki, and I though I remembered one of them having caused an error a while back. I didn't have a change to investigate at the time.

Now I do, so I've whipped up a test script that tests out the various pieces of code in the Pythonic Extensions section. Extensions 3 and 4 fail for me:

---
[EMAIL PROTECTED] ~/proj/search/trunk]$ bin/tmp.py 3
PyLucene 2.1.0-1 Lucene 2.1.0-509013
Traceback (most recent call last):
File "bin/tmp.py", line 48, in <module>
  main()
File "bin/tmp.py", line 31, in main
  print len(reader)
TypeError: object of type 'PyLucene.IndexReader' has no len()

Fixed the README to no longer say that.

[EMAIL PROTECTED] ~/proj/search/trunk]$ bin/tmp.py 4
PyLucene 2.1.0-1 Lucene 2.1.0-509013
Hail To The Thief
Traceback (most recent call last):
File "bin/tmp.py", line 48, in <module>
  main()
File "bin/tmp.py", line 40, in main
  print doc.title
AttributeError: 'PyLucene.Document' object has no attribute 'title'

Fixed the Document type.

Andi..

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to