]> granicus.if.org Git - python/commit
Implement dict() style constructor.
authorRaymond Hettinger <python@rcn.com>
Fri, 22 Nov 2002 00:07:40 +0000 (00:07 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 22 Nov 2002 00:07:40 +0000 (00:07 +0000)
commit54405456e5c2b76879472051c23e6c1c9f433beb
treeab0827e9b4532d0ad144d9e0033d451410eb41a3
parentba2cf078d2bd8705f61afda7081522981674882e
Implement dict() style constructor.
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.
Lib/UserDict.py
Lib/test/test_userdict.py