From 8465ae8cea3c9c0d4afed5db9c302c41cc4926e6 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 17 Nov 2007 01:51:22 +0000 Subject: Fix signature in example --- Doc/library/collections.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index bdc0b86..403d00f 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -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)) -- cgit v0.12