A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-August/008040.html below:

A small proposed change to dictionaries' "get" method...)

dict.setdefault() (Patch#101102) (was: Re: [Python-Dev] Re: A small proposed change to dictionaries' "get" method...) dict.setdefault() (Patch#101102) (was: Re: [Python-Dev] Re: A small proposed change to dictionaries' "get" method...)Peter Funk pf@artcom-gmbh.de
Tue, 8 Aug 2000 10:00:29 +0200 (MEST)
Hi Tim!

Tim Peters:
[...]
> Ha!  I *told* Guido people would think that's the proper use of something
> named setdefault <0.9 wink>.
[...]
>     dict.getorset('hi', []).append(42)  # getorset is my favorite

'getorset' is a *MUCH* better name compared to 'default' or 'setdefault'. 

Regards, Peter



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