[Python-Dev] Rich comparison confusion

Greg Ewing greg@cosc.canterbury.ac.nz
2001年1月22日 13:36:51 +1300 (NZDT)


Guido:
> I don't understand how these can be not commutative unless they have a
> side effect on the left argument

I think he meant "not reflective". If a<b == floor(a,b) and a>b ==
ceil(a,b), then clearly a<b != b>a.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	 | A citizen of NewZealandCorp, a	 |
Christchurch, New Zealand	 | wholly-owned subsidiary of USA Inc. |
greg@cosc.canterbury.ac.nz	 +--------------------------------------+

AltStyle によって変換されたページ (->オリジナル) /