summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorYuki Kobayashi <drsuaimqjgar@gmail.com>2024-12-02 13:51:35 (GMT)
committerGitHub <noreply@github.com>2024-12-02 13:51:35 (GMT)
commit3e812253ab6b2f98fc5d17bfb82947e392b0b2a2 (patch)
tree393d49359d94abf11953be7e557d7a863e024568 /Doc/library
parent31f16e427b545f66a9a45ea9dd6c933975ce0e4c (diff)
downloadcpython-3e812253ab6b2f98fc5d17bfb82947e392b0b2a2.zip
cpython-3e812253ab6b2f98fc5d17bfb82947e392b0b2a2.tar.gz
cpython-3e812253ab6b2f98fc5d17bfb82947e392b0b2a2.tar.bz2
gh-101100: Fix Sphinx warnings about list methods (#127054)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/collections.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 0cc9063..5b4e445 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -783,10 +783,10 @@ sequence of key-value pairs into a dictionary of lists:
When each key is encountered for the first time, it is not already in the
mapping; so an entry is automatically created using the :attr:`~defaultdict.default_factory`
-function which returns an empty :class:`list`. The :meth:`list.append`
+function which returns an empty :class:`list`. The :meth:`!list.append`
operation then attaches the value to the new list. When keys are encountered
again, the look-up proceeds normally (returning the list for that key) and the
-:meth:`list.append` operation adds another value to the list. This technique is
+:meth:`!list.append` operation adds another value to the list. This technique is
simpler and faster than an equivalent technique using :meth:`dict.setdefault`:
>>> d = {}