[Python-3000-checkins] r67324 - python/branches/py3k/Doc/glossary.rst

benjamin.peterson python-3000-checkins at python.org
Sat Nov 22 00:22:00 CET 2008


Author: benjamin.peterson
Date: Sat Nov 22 00:22:00 2008
New Revision: 67324

Log:
add a glossary entry for "view"

Modified:
   python/branches/py3k/Doc/glossary.rst

Modified: python/branches/py3k/Doc/glossary.rst
==============================================================================
--- python/branches/py3k/Doc/glossary.rst	(original)
+++ python/branches/py3k/Doc/glossary.rst	Sat Nov 22 00:22:00 2008
@@ -498,6 +498,13 @@
       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.


More information about the Python-3000-checkins mailing list