mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Merge 3.4
This commit is contained in:
commit
e6b2b78a7d
3 changed files with 18 additions and 5 deletions
|
@ -1904,6 +1904,12 @@ through the container; for mappings, :meth:`__iter__` should be the same as
|
|||
indexes to allow proper detection of the end of the sequence.
|
||||
|
||||
|
||||
.. method:: object.__missing__(self, key)
|
||||
|
||||
Called by :class:`dict`\ .\ :meth:`__getitem__` to implement ``self[key]`` for dict subclasses
|
||||
when key is not in the dictionary.
|
||||
|
||||
|
||||
.. method:: object.__setitem__(self, key, value)
|
||||
|
||||
Called to implement assignment to ``self[key]``. Same note as for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue