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/2001-March/013885.html below:

(Don't Read If You're Busy With 2.1b2) "Rich" Comparisons?

[Python-Dev] Re: (Don't Read If You're Busy With 2.1b2) "Rich" Comparisons?Ka-Ping Yee ping@lfw.org
Fri, 23 Mar 2001 11:35:43 -0800 (PST)
On Fri, 23 Mar 2001, Moshe Zadka wrote:
> >>> a = set([1,2])
> >>> b = set([1,3])
[...]
> While I'd like
> 
> >>> max(a,b) == set([1,2,3])
> >>> min(a,b) == set([1])

The operation you're talking about isn't really max or min.

Why not simply write:

    >>> a | b
    [1, 2, 3]
    >>> a & b
    [1]

?


-- ?!ng




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