diff options
-rw-r--r-- | Doc/library/collections.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |