Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 656aa28

Browse files
committed
add a glossary entry for "view"
1 parent efae8c4 commit 656aa28

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/glossary.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,13 @@ Glossary
498498
object has a type. An object's type is accessible as its
499499
:attr:`__class__` attribute or can be retrieved with ``type(obj)``.
500500

501+
view
502+
The objects returned from :meth:`dict.keys`, :meth:`dict.items`, and
503+
:meth:`dict.items` are called dictionary views. They are lazy sequences
504+
that will see changes in the underlying dictionary. To force the
505+
dictionary view to become a full list use ``list(dictview)``. See
506+
:ref:`dict-views`.
507+
501508
virtual machine
502509
A computer defined entirely in software. Python's virtual machine
503510
executes the :term:`bytecode` emitted by the bytecode compiler.

0 commit comments

Comments
 (0)