Better variable name in an example.

This commit is contained in:
Raymond Hettinger 2008-01-18 21:14:58 +00:00
parent 9ff1a44973
commit 0fe6ca4673
1 changed files with 2 additions and 2 deletions

View File

@ -547,8 +547,8 @@ Default values can be implemented by using :meth:`_replace` to
customize a prototype instance:: customize a prototype instance::
>>> Account = namedtuple('Account', 'owner balance transaction_count') >>> Account = namedtuple('Account', 'owner balance transaction_count')
>>> model_account = Account('<owner name>', 0.0, 0) >>> default_account = Account('<owner name>', 0.0, 0)
>>> johns_account = model_account._replace(owner='John') >>> johns_account = default_account._replace(owner='John')
.. rubric:: Footnotes .. rubric:: Footnotes