Kaydet (Commit) 0fe6ca46 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Better variable name in an example.

üst 9ff1a449
...@@ -547,8 +547,8 @@ Default values can be implemented by using :meth:`_replace` to ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment