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-October/018007.html below:

[Python-Dev] Function arguments

[Python-Dev] Function arguments [Python-Dev] Function argumentsThomas Heller thomas.heller@ion-tof.com
Thu, 18 Oct 2001 17:26:51 +0200
From: "Skip Montanaro" <skip@pobox.com>
> 
> It's perhaps worth pointing out that dicts already have a zero-arg popitem
> method.  I don't think I would use Thomas's proposed popitem so frequently
> that the fairly obvious
> 
>     v = d.get(k, default)
>     try: del d[k]
>     except KeyError: pass
> 
> would be all that much trouble to type.  Those are the semantics you're
> proposing, right?
Exactly.

Thomas




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