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

[Python-Dev] Using lists as sets

[Python-Dev] Using lists as sets [Python-Dev] Using lists as setsKa-Ping Yee ping@lfw.org
Fri, 17 Mar 2000 11:49:18 -0600 (CST)
On Fri, 17 Mar 2000, Ka-Ping Yee wrote:
> 
>     c.take(item) is equivalent to
> 
>         if item not in c: c.append(item)
> 
>     c.drop(item) is equivalent to
> 
>         while item in c: c.remove(item)

I think i've decided that i like the verb "include" much better than
the rather vague word "take".  Perhaps this also suggests "exclude"
instead of "drop".


-- ?!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