Update example to match the current syntax.

This commit is contained in:
Raymond Hettinger 2008-02-15 21:21:25 +00:00
parent 04735179f0
commit e9b9b35931
1 changed files with 1 additions and 1 deletions

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