From 656aa28cd50d00171d46df30eaeecd45eb0ae32c Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 21 Nov 2008 23:22:00 +0000 Subject: add a glossary entry for "view" --- Doc/glossary.rst | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- cgit v0.12