summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-01-27 14:14:29 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-01-27 14:14:29 (GMT)
commitbc9f1b5a146a599bde8245ad80edadedecb8ae25 (patch)
treefb65e1c378da80a53e106b8e8c9d2ba8ba39ea62
parentb46d4b770d3a09c2bf7df9ed1e6133d9a8756617 (diff)
parent871b9d169d839706492d861a20ce5d1018beebd9 (diff)
downloadcpython-bc9f1b5a146a599bde8245ad80edadedecb8ae25.zip
cpython-bc9f1b5a146a599bde8245ad80edadedecb8ae25.tar.gz
cpython-bc9f1b5a146a599bde8245ad80edadedecb8ae25.tar.bz2
merge heads (#13887)
-rw-r--r--Doc/library/collections.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index c9e3864..188fd0a 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -595,6 +595,11 @@ stack manipulations such as ``dup``, ``drop``, ``swap``, ``over``, ``pick``,
:class:`dict` class when the requested key is not found; whatever it
returns or raises is then returned or raised by :meth:`__getitem__`.
+ Note that :meth:`__missing__` is *not* called for any operations besides
+ :meth:`__getitem__`. This means that :meth:`get` will, like normal
+ dictionaries, return ``None`` as a default rather than using
+ :attr:`default_factory`.
+
:class:`defaultdict` objects support the following instance variable: