Re: KeyWeight and KeyBag

2010-01-21 Thread Darren Duncan

David Brunton wrote:

I notice that CKeyWeight returns False and deletes the key for a key
whose value goes to zero or less than zero, issuing a warning in the
latter case.  Is it the case that CFatRat always evaluates to False
in Boolean context when negative?


Please restate your question.  I don't think it makes sense for CFatRat to 
evaluate to False for a negative number. -- Darren Duncan


Re: KeyWeight and KeyBag

2010-01-21 Thread David Brunton
Thanks, Darren -

It doesn't make a lot of sense to me, either.  Maybe how I should have
asked: Why does FatRat evaluate to False when negative if it is a value of
a KeyWeight?  Does that make more sense?

Quite possibly I'm just reading S32/Containers wrongly.

-db.

On Jan 21, 2010 4:04 PM, Darren Duncan dar...@darrenduncan.net wrote:

David Brunton wrote:

 I notice that CKeyWeight returns False and deletes the key for a key
 whose value goes to zero or less than zero, issuing a warning in the
 latter case.  Is it the case that CFatRat always evaluates to False
 in Boolean context when negative?


Please restate your question.  I don't think it makes sense for CFatRat to
evaluate to False for a negative number. -- Darren Duncan


KeyWeight and KeyBag

2010-01-20 Thread David Brunton
I notice that CKeyWeight returns False and deletes the key for a key
whose value goes to zero or less than zero, issuing a warning in the
latter case.  Is it the case that CFatRat always evaluates to False
in Boolean context when negative?