Merge with 3.4
This commit is contained in:
commit
3b46f5ac18
@ -3761,7 +3761,7 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
|
|||||||
Return the item of *d* with key *key*. Raises a :exc:`KeyError` if *key* is
|
Return the item of *d* with key *key*. Raises a :exc:`KeyError` if *key* is
|
||||||
not in the map.
|
not in the map.
|
||||||
|
|
||||||
.. index:: __missing__()
|
.. index:: __missing__()
|
||||||
|
|
||||||
If a subclass of dict defines a method :meth:`__missing__` and *key*
|
If a subclass of dict defines a method :meth:`__missing__` and *key*
|
||||||
is not present, the ``d[key]`` operation calls that method with the key *key*
|
is not present, the ``d[key]`` operation calls that method with the key *key*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user