diff options
author | Raymond Hettinger <python@rcn.com> | 2008-01-16 23:38:16 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-01-16 23:38:16 (GMT) |
commit | 171f3916c585e68d65421cb05461ad61ec8e1017 (patch) | |
tree | 1771f297a39f13378f67807936d3ded7f8ec4768 /Doc/library/collections.rst | |
parent | 0f75f9847a178e93cde056a4d889260698cd9471 (diff) | |
download | cpython-171f3916c585e68d65421cb05461ad61ec8e1017.zip cpython-171f3916c585e68d65421cb05461ad61ec8e1017.tar.gz cpython-171f3916c585e68d65421cb05461ad61ec8e1017.tar.bz2 |
Minor wordsmithing.
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r-- | Doc/library/collections.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index cde114c..1cb80e4 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -536,8 +536,7 @@ faster versions that bypass error-checking:: return self._make(_map(kwds.get, ('x', 'y'), self)) The subclasses shown above set ``__slots__`` to an empty tuple. This keeps -the named tuples from having per-instance dictionaries, so they will -continue to be lightweight and require no more memory than regular tuples. +keep memory requirements low by preventing the creation of instance dictionaries. Subclassing is not useful for adding new, stored fields. Instead, simply create a new named tuple type from the :attr:`_fields` attribute:: |