[PYTHON MATRIX-SIG] ARRAY COMPARISONS
Fredrik Lundh
fredrik_lundh@ivab.se
Fri, 25 Oct 1996 14:50:46 +0200
Konrad writes:
> Of course the best solution would be to give up this strategy and
> implement all the comparison operators independently. With some
> effort that could even be done in a backwards compatible way (i.e.
> using the old strategy for types defining cmp()).
Agreed. I have several applications where such a change would be
really useful (like using Python classes to build expression trees for
later execution within subsystems; operations on images, for example).
> But that is far from a trivial change.
Not sure about that, really (thought it might add some overhead for
classes that only implements __cmp__). Is definitely worth
investigating for 1.5.
Regards /F
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================