From: Raymond Hettinger Date: Fri, 15 Feb 2008 21:21:25 +0000 (+0000) Subject: Update example to match the current syntax. X-Git-Tag: v2.6a1~159 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9b9b35931c72c6c27e87c1b40ff08903395ce89;p=python Update example to match the current syntax. --- diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index d37c5ac304..dae9b0923f 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -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)