Fix signature in example

This commit is contained in:
Raymond Hettinger 2007-11-17 01:51:22 +00:00
parent 6f7e6fb7a2
commit 8465ae8cea
1 changed files with 1 additions and 1 deletions

View 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))