[pylucene-dev] TopFieldDocs returned from indexSearcher are
wrong
Yura Smolsky
info at altervisionmedia.com
Tue Sep 12 09:44:11 PDT 2006
Hello, Andi.
AV> On Tue, 12 Sep 2006, Yura Smolsky wrote:
>> AV> In python, to create a float with negative infinity you say: float('-inf')
>>
>> so I need to recreate this value?
AV> I'm not sure I understand your question.
seems like float('-inf') does not work on windows
D:\work\Python24\Lib\site-packages>python
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> float('-inf')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: invalid literal for float(): -inf
:(
--
Yura Smolsky,
http://altervisionmedia.com/
More information about the pylucene-dev
mailing list