<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/UserDict.py, branch v2.3.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/UserDict.py?h=v2.3.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/UserDict.py?h=v2.3.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-03-06T23:54:28Z</updated>
<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>
<entry>
<title>SF patch #520382:  Expand shelve.py to have a full dictionary interface</title>
<updated>2002-11-15T06:46:14Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-11-15T06:46:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7994716b6bcaeca64f47b7b3ed4e411bb6afc415'/>
<id>urn:sha1:7994716b6bcaeca64f47b7b3ed4e411bb6afc415</id>
<content type='text'>
and add a mixin to UserDict.py to make it easier to implement a full
dictionary interface.
</content>
</entry>
<entry>
<title>Add pop() to UserDict.</title>
<updated>2002-04-13T14:03:38Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-04-13T14:03:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f49562586f965ef8f670fcf8e7f89bf3df0a876e'/>
<id>urn:sha1:f49562586f965ef8f670fcf8e7f89bf3df0a876e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>copy():  Make sure the copy of a derived class cannot share the data of the</title>
<updated>2001-11-05T17:40:48Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-11-05T17:40:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3ce5af70e352b3a8fbea8e3f27464b6ca2d66ebd'/>
<id>urn:sha1:3ce5af70e352b3a8fbea8e3f27464b6ca2d66ebd</id>
<content type='text'>
original by replacing self.data temporarily, then using the update() method
on the new mapping object to populate it.
This closes SF bug #476616.
</content>
</entry>
<entry>
<title>Remove the __iter__ method from the UserDict class -- it can silently</title>
<updated>2001-08-07T17:40:42Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-07T17:40:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2050b65e84c01651f1b37b7ab058ec958fd14a53'/>
<id>urn:sha1:2050b65e84c01651f1b37b7ab058ec958fd14a53</id>
<content type='text'>
break old code (in extreme cases).  See SF bug #448153.

Add a new subclass IterableUserDict that has the __iter__ method.

Note that for new projects, unless backwards compatibility with
pre-2.2 Python is required, subclassing 'dictionary' is recommended;
UserDict might become deprecated.
</content>
</entry>
</feed>
