From: Raymond Hettinger Date: Sat, 17 Nov 2007 01:51:22 +0000 (+0000) Subject: Fix signature in example X-Git-Tag: v2.6a1~1045 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8465ae8cea3c9c0d4afed5db9c302c41cc4926e6;p=python Fix signature in example --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index bdc0b86a59..403d00f856 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))