A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/006548.html below:

[Python-Dev] request for minor enhancement

[Python-Dev] request for minor enhancement / linear algebraThomas 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!



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4