[Numpy-discussion] OpenOpt Suite release 0.45
matthieu.brucher at gmail.com
Sat Mar 16 05:33:32 EDT 2013
Different objects can have the same hash, so it compares to find the actual
Usually when you store something in a dict and later you can't find it
anymore, it is that the internal state changed and that the hash is not the
2013/3/16 Dmitrey <tmp50 at ukr.net>
> --- Исходное сообщение ---
> От кого: "Alan G Isaac" <alan.isaac at gmail.com>
> Дата: 15 марта 2013, 22:54:21
> On 3/15/2013 3:34 PM, Dmitrey wrote:
> > the suspected bugs are not documented yet
> I'm going to guess that the state of the F_i changes
> when you use them as keys (i.e., when you call __le__.
> no, their state doesn't change for operations like __le__ . AFAIK
> searching Python dict doesn't calls __le__ on the object keys at all, it
> operates with method .__hash__(), and latter returns fixed integer numbers
> assigned to the objects earlier (at least in my case).
> It is very hard to imagine that this is a Python or NumPy bug.
> NumPy-Discussion mailing listNumPy-Discussion at scipy.orghttp://mail.scipy.org/mailman/listinfo/numpy-discussion
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
Information System Engineer, Ph.D.
Music band: http://liliejay.com/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion