diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-11-21 23:22:00 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-11-21 23:22:00 (GMT) |
commit | 656aa28cd50d00171d46df30eaeecd45eb0ae32c (patch) | |
tree | dc30ffcd585db60b20fb967a267b183c83886af4 | |
parent | efae8c499f522547b9e73afde8821b0a1b1bf015 (diff) | |
download | cpython-656aa28cd50d00171d46df30eaeecd45eb0ae32c.zip cpython-656aa28cd50d00171d46df30eaeecd45eb0ae32c.tar.gz cpython-656aa28cd50d00171d46df30eaeecd45eb0ae32c.tar.bz2 |
add a glossary entry for "view"
-rw-r--r-- | Doc/glossary.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 897cb1a..6100aff 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -498,6 +498,13 @@ Glossary object has a type. An object's type is accessible as its :attr:`__class__` attribute or can be retrieved with ``type(obj)``. + view + The objects returned from :meth:`dict.keys`, :meth:`dict.items`, and + :meth:`dict.items` are called dictionary views. They are lazy sequences + that will see changes in the underlying dictionary. To force the + dictionary view to become a full list use ``list(dictview)``. See + :ref:`dict-views`. + virtual machine A computer defined entirely in software. Python's virtual machine executes the :term:`bytecode` emitted by the bytecode compiler. |