Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
446977c0
Commit
446977c0
authored
Oct 07, 2015
by
Martin Panter
Browse files
Options
Browse Files
Download
Plain Diff
Issue #25286: Merge dictionary view glossary from 3.4 into 3.5
parents
848f2b59
85b8f455
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
Doc/glossary.rst
Doc/glossary.rst
+8
-7
Doc/library/collections.abc.rst
Doc/library/collections.abc.rst
+1
-1
No files found.
Doc/glossary.rst
View file @
446977c0
...
@@ -241,6 +241,14 @@ Glossary
...
@@ -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
...
@@ -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
...
...
Doc/library/collections.abc.rst
View file @
446977c0
...
@@ -150,7 +150,7 @@ ABC Inherits from Abstract Methods Mixin
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment