]> granicus.if.org Git - python/commitdiff
Update example to match the current syntax.
authorRaymond Hettinger <python@rcn.com>
Fri, 15 Feb 2008 21:21:25 +0000 (21:21 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 15 Feb 2008 21:21:25 +0000 (21:21 +0000)
Doc/whatsnew/2.6.rst

index d37c5ac3042a2784417050216914fb9bd206e482..dae9b0923f32cf768230adab543bb672a555f5a4 100644 (file)
@@ -825,7 +825,7 @@ complete list of changes, or look through the CVS logs for all the details.
      int int
      >>> var._asdict()
      {'size': 4, 'type': 'int', 'id': 1, 'name': 'frequency'}
-     >>> v2 = var._replace('name', 'amplitude')
+     >>> v2 = var._replace(name='amplitude')
      >>> v2
      variable(id=1, name='amplitude', type='int', size=4)