[pylucene-dev] TopFieldDocs returned from indexSearcher are wrong

Yura Smolsky info at altervisionmedia.com
Tue Sep 12 12:17:32 PDT 2006


Hello, Andi.

>> well, i have found that I can use float(-1e3000) as -infinity value,
>> but when I pass it to TopFieldDocs constructor I get InvalidArgsError:
AV> According to google, you should be able to say: float('-infinity')

Yeah :) But the problem is that the expression float('infinity') works on some
platforms, along with float('Inf'), but, as the PEP points out, on
many systems we'll just get an error.

http://www.python.org/dev/peps/pep-0754/

anyway, thanks for pointing this issue :)
--
Yura Smolsky,
http://altervisionmedia.com/




More information about the pylucene-dev mailing list