]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Accept Issac Morland's suggestion for __replace__ to allow multiple replacements
authorRaymond Hettinger <python@rcn.com>
Thu, 15 Nov 2007 02:44:53 +0000 (02:44 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 15 Nov 2007 02:44:53 +0000 (02:44 +0000)
commiteeeb9c4445391f0ec91d84d5f35634ffe42c66de
treef912371af912aedc3469746cd3cd3e961ff33395
parentb5e5d0741a7a9b8219abac143e06f40b804886c9
Accept Issac Morland's suggestion for __replace__ to allow multiple replacements
(suprisingly, this simplifies the signature, improves clarity, and is comparably fast).
Update the docs to reflect a previous change to the function name.
Add an example to the docs showing how to override the default __repr__ method.
Doc/library/collections.rst
Lib/collections.py
Lib/test/test_collections.py