diff options
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r-- | Doc/library/collections.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index cbc9c6b..d138d23 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -579,8 +579,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 |