[Patches] [ python-Patches-904720 ] dict.update should take a 2-tuple sequence like dict.__init_

SourceForge.net noreply at sourceforge.net
Wed Feb 25 20:05:14 EST 2004


Patches item #904720, was opened at 2004-02-25 20:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=904720&group_id=5470

Category: Core (C code)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Bob Ippolito (etrepum)
Assigned to: Nobody/Anonymous (nobody)
Summary: dict.update should take a 2-tuple sequence like dict.__init_

Initial Comment:
This patch allows:
    d = {}
    d.update([(1,2), (3,4)])

The current way to do it is (unfortunately):
    d = {}
    d.update(dict([(1,2), (3,4)]))

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=904720&group_id=5470



More information about the Patches mailing list