[PYTHON MATRIX-SIG] Comparisons

Konrad HINSEN hinsenk@ere.umontreal.ca
Wed, 3 Apr 1996 07:08:17 -0500


> 
> Repeatedly there has been a discussion about "<" and ">" comparisons
> for Array objects. Why can that not be implemented in the "dictionary"
> way? It just needs to be made recursive. Like:
> 
>    a<b if:
>       (a[0]<b[0]) or
>       (a[0]==b[0] and (a[1]<b[1] or len(a)=1)) or
>       ....

It probably can be implemented in such a way, but why?  For what
application would this definition be useful?

-------------------------------------------------------------------------------
Konrad Hinsen                     | E-Mail: hinsenk@ere.umontreal.ca
Departement de chimie             | Tel.: +1-514-343-6111 ext. 3953
Universite de Montreal            | Fax:  +1-514-343-7586
C.P. 6128, succ. Centre-Ville     | Deutsch/Esperanto/English/Nederlands/
Montreal (QC) H3C 3J7             | Francais (phase experimentale)
-------------------------------------------------------------------------------

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================