[Python-Dev] request for minor enhancement / linear algebra

Thomas Wouters thomas@xs4all.net
Fri, 14 Jul 2000 17:33:43 +0200


On Fri, Jul 14, 2000 at 11:20:02AM -0400, Andrew Kuchling wrote:
> On Fri, Jul 14, 2000 at 11:17:17AM -0400, Greg Wilson wrote:

> >I want overloadable '__min__' and 'min=', and everything else that has
> >these forms is binary infix (I think).

> One exception to the binary infix form: 'if foo' will call
> foo.__nonzero__.  

And another: int(foo) (and other, implicit conversions) call foo.__int__.
However, I think overloading 'min' and 'max' should fall under the rich
comparisons PEP. 

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!