[Patches] [Patch #101102] dict.setdefault()

noreply@sourceforge.net noreply@sourceforge.net
Tue, 8 Aug 2000 09:12:14 -0700


Patch #101102 has been updated. 

Project: 
Category: core (C code)
Status: Closed
Summary: dict.setdefault()

Follow-Ups:

Date: 2000-Aug-06 18:45
By: bwarsaw

Comment:
dict.setdefault() is like dict.get() except that if the key is missing, the fail object is both returned and inserted into the dictionary as the value of the key.
-------------------------------------------------------

Date: 2000-Aug-08 09:12
By: gvanrossum

Comment:
Accepted and checked in.

(The patch here has one bug: the function name for the error message is "get" instead of "setdefault". Fixed in the checked-in version.)
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101102&group_id=5470