[Python-checkins] r59024 - python/trunk/Doc/library/collections.rst

raymond.hettinger python-checkins at python.org
Sat Nov 17 02:51:22 CET 2007


Author: raymond.hettinger
Date: Sat Nov 17 02:51:22 2007
New Revision: 59024

Modified:
   python/trunk/Doc/library/collections.rst
Log:
Fix signature in example

Modified: python/trunk/Doc/library/collections.rst
==============================================================================
--- python/trunk/Doc/library/collections.rst	(original)
+++ python/trunk/Doc/library/collections.rst	Sat Nov 17 02:51:22 2007
@@ -394,7 +394,7 @@
            def __asdict__(self):
                'Return a new dict mapping field names to their values'
                return dict(zip(('x', 'y'), self))
-           def __replace__(self, field, value):
+           def __replace__(self, **kwds):
                'Return a new Point object replacing specified fields with new values'
                return Point(**dict(zip(('x', 'y'), self) + kwds.items()))
            x = property(itemgetter(0))


More information about the Python-checkins mailing list