mirror of
https://github.com/python/cpython.git
synced 2025-11-09 14:06:30 +00:00
Issue #25286: Merge dictionary view glossary from 3.4 into 3.5
This commit is contained in:
commit
446977c080
2 changed files with 9 additions and 8 deletions
|
|
@ -241,6 +241,14 @@ Glossary
|
||||||
keys can be any object with :meth:`__hash__` and :meth:`__eq__` methods.
|
keys can be any object with :meth:`__hash__` and :meth:`__eq__` methods.
|
||||||
Called a hash in Perl.
|
Called a hash in Perl.
|
||||||
|
|
||||||
|
dictionary view
|
||||||
|
The objects returned from :meth:`dict.keys`, :meth:`dict.values`, and
|
||||||
|
:meth:`dict.items` are called dictionary views. They provide a dynamic
|
||||||
|
view on the dictionary’s entries, which means that when the dictionary
|
||||||
|
changes, the view reflects these changes. To force the
|
||||||
|
dictionary view to become a full list use ``list(dictview)``. See
|
||||||
|
:ref:`dict-views`.
|
||||||
|
|
||||||
docstring
|
docstring
|
||||||
A string literal which appears as the first expression in a class,
|
A string literal which appears as the first expression in a class,
|
||||||
function or module. While ignored when the suite is executed, it is
|
function or module. While ignored when the suite is executed, it is
|
||||||
|
|
@ -934,13 +942,6 @@ Glossary
|
||||||
``'\r'``. See :pep:`278` and :pep:`3116`, as well as
|
``'\r'``. See :pep:`278` and :pep:`3116`, as well as
|
||||||
:func:`bytes.splitlines` for an additional use.
|
:func:`bytes.splitlines` for an additional use.
|
||||||
|
|
||||||
view
|
|
||||||
The objects returned from :meth:`dict.keys`, :meth:`dict.values`, 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 environment
|
virtual environment
|
||||||
A cooperatively isolated runtime environment that allows Python users
|
A cooperatively isolated runtime environment that allows Python users
|
||||||
and applications to install and upgrade Python distribution packages
|
and applications to install and upgrade Python distribution packages
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ ABC Inherits from Abstract Methods Mixin
|
||||||
KeysView
|
KeysView
|
||||||
ValuesView
|
ValuesView
|
||||||
|
|
||||||
ABCs for mapping, items, keys, and values :term:`views <view>`.
|
ABCs for mapping, items, keys, and values :term:`views <dictionary view>`.
|
||||||
|
|
||||||
.. class:: Awaitable
|
.. class:: Awaitable
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue