]> granicus.if.org Git - python/commitdiff
Fix signature in example
authorRaymond Hettinger <python@rcn.com>
Sat, 17 Nov 2007 01:51:22 +0000 (01:51 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 17 Nov 2007 01:51:22 +0000 (01:51 +0000)
Doc/library/collections.rst

index bdc0b86a59179a878ed7a463515cd957802df48e..403d00f856c2e32bc27bd2b346fc02c20a4a98dd 100644 (file)
@@ -394,7 +394,7 @@ Example::
            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))