]> granicus.if.org Git - python/commit
- Patch 1433928:
authorGuido van Rossum <guido@python.org>
Sat, 25 Feb 2006 22:38:04 +0000 (22:38 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 25 Feb 2006 22:38:04 +0000 (22:38 +0000)
commit1968ad32cd7f46d9bb64826672ef68cdaee35288
treec46db5a446d9de18fb8436408ec29d2111a2f5ad
parentab51f5f24d6f6edef5e8fac5e31b2e4ac0cbdbac
- Patch 1433928:
  - The copy module now "copies" function objects (as atomic objects).
  - dict.__getitem__ now looks for a __missing__ hook before raising
    KeyError.
  - Added a new type, defaultdict, to the collections module.
    This uses the new __missing__ hook behavior added to dict (see above).
12 files changed:
Doc/lib/libcollections.tex
Doc/lib/libcopy.tex
Doc/lib/libstdtypes.tex
Lib/UserDict.py
Lib/copy.py
Lib/test/test_copy.py
Lib/test/test_defaultdict.py [new file with mode: 0644]
Lib/test/test_dict.py
Lib/test/test_userdict.py
Misc/NEWS
Modules/collectionsmodule.c
Objects/dictobject.c