]> granicus.if.org Git - python/commitdiff
Better variable name in an example.
authorRaymond Hettinger <python@rcn.com>
Fri, 18 Jan 2008 21:14:58 +0000 (21:14 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 18 Jan 2008 21:14:58 +0000 (21:14 +0000)
Doc/library/collections.rst

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