diff options
author | Raymond Hettinger <python@rcn.com> | 2007-11-17 01:51:22 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2007-11-17 01:51:22 (GMT) |
commit | 8465ae8cea3c9c0d4afed5db9c302c41cc4926e6 (patch) | |
tree | 94858ce0d55480fb18cef248dff29c9a8b4d5fe2 /Doc | |
parent | 6f7e6fb7a2e5f379a140f320e7c19cb171ab72c1 (diff) | |
download | cpython-8465ae8cea3c9c0d4afed5db9c302c41cc4926e6.zip cpython-8465ae8cea3c9c0d4afed5db9c302c41cc4926e6.tar.gz cpython-8465ae8cea3c9c0d4afed5db9c302c41cc4926e6.tar.bz2 |
Fix signature in example
Diffstat (limited to 'Doc')
-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)) |