<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/UserDict.py, branch v2.4b2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/UserDict.py?h=v2.4b2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/UserDict.py?h=v2.4b2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-05-27T09:41:04Z</updated>
<entry>
<title>The default argument in dict.setdefault() defaults to None.</title>
<updated>2004-05-27T09:41:04Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2004-05-27T09:41:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c139909611162e995321c09a32c4e42433e2655e'/>
<id>urn:sha1:c139909611162e995321c09a32c4e42433e2655e</id>
<content type='text'>
Add this default to UserDict.DictMixin.setdefault() too.
</content>
</entry>
<entry>
<title>SF #904720:  dict.update should take a 2-tuple sequence like dict.__init_</title>
<updated>2004-03-04T08:25:44Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-03-04T08:25:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=31017aed36a5c5b0e4b16ca58bea09c9ce360134'/>
<id>urn:sha1:31017aed36a5c5b0e4b16ca58bea09c9ce360134</id>
<content type='text'>
(Championed by Bob Ippolito.)

The update() method for mappings now accepts all the same argument forms
as the dict() constructor.  This includes item lists and/or keyword
arguments.
</content>
</entry>
<entry>
<title>Make sure the UserDict copies do not share the same underlying</title>
<updated>2003-12-21T22:19:08Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-12-21T22:19:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9014560412a2bd322170902a42ab965eee4b0c47'/>
<id>urn:sha1:9014560412a2bd322170902a42ab965eee4b0c47</id>
<content type='text'>
dictionary as the original.  This parallels MvL's change to
Lib/os.py 1.56.

Backport candidate.
</content>
</entry>
<entry>
<title>SF bug #849662.  Dramatically, improve comparison speed for "if shl == None".</title>
<updated>2003-12-04T20:04:09Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-12-04T20:04:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f477c884509ad5e6a4d2ef583dae9eb1cd6d125d'/>
<id>urn:sha1:f477c884509ad5e6a4d2ef583dae9eb1cd6d125d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF patch #693753:  fix for bug 639806: default for dict.pop</title>
<updated>2003-03-06T23:54:28Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-03-06T23:54:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a3e1e4cd79abe7069c8bc20db65161dd8c68b305'/>
<id>urn:sha1:a3e1e4cd79abe7069c8bc20db65161dd8c68b305</id>
<content type='text'>
(contributed by Michael Stone.)
</content>
</entry>
<entry>
<title>typo in comment</title>
<updated>2003-01-31T03:30:09Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2003-01-31T03:30:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1a17704ff18ab6aa678b346aa6f97faa37472929'/>
<id>urn:sha1:1a17704ff18ab6aa678b346aa6f97faa37472929</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF patch #667730: More DictMixin</title>
<updated>2003-01-22T01:39:06Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-01-22T01:39:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=51f3f1b7dce6d054891faf9959fc493e66e9f684'/>
<id>urn:sha1:51f3f1b7dce6d054891faf9959fc493e66e9f684</id>
<content type='text'>
Sebastien Keim pointed out that iterkeys and __contains__ require
their own definitions so their behavior will update when the
underlying method is subclassed.
</content>
</entry>
<entry>
<title>Bring UserDict in-sync with changes to dict.</title>
<updated>2002-11-27T08:29:11Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-11-27T08:29:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e4827eb2a2c9eed8911a6874866a224972ff40ab'/>
<id>urn:sha1:e4827eb2a2c9eed8911a6874866a224972ff40ab</id>
<content type='text'>
Constructor accepts optional keyword arguments after a optional items list.
Add fromkeys() as an alternate constructor from an iterable over keys.
Expand related unittests.
</content>
</entry>
<entry>
<title>Implement dict() style constructor.</title>
<updated>2002-11-22T00:07:40Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-11-22T00:07:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=54405456e5c2b76879472051c23e6c1c9f433beb'/>
<id>urn:sha1:54405456e5c2b76879472051c23e6c1c9f433beb</id>
<content type='text'>
Already supported dict() and dict(mapping).
Now supports dict(itemsequence) and
Just van Rossum's new syntax for dict(keywordargs).

Also, added related unittests.

The docs already promise dict-like behavior
so no update is needed there.
</content>
</entry>
<entry>
<title>Improve DictMixin.</title>
<updated>2002-11-18T04:34:10Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-11-18T04:34:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8ddc176e2e7ef11b2c46062b29563bc776f177b8'/>
<id>urn:sha1:8ddc176e2e7ef11b2c46062b29563bc776f177b8</id>
<content type='text'>
Replaced docstring with comments.  Prevents subclass contamination.
Added the missing __cmp__() method and a test for __cmp__().
Used try/except style in preference to has_key() followed by a look-up.
Used iteritem() where possible to save creating a long key list and
   to save redundant lookups.
Expanded .update() to look for the most helpful methods first and gradually
   work down to a mininum expected interface.
Expanded documentation to be more clear on how to use the class.
</content>
</entry>
</feed>
