summaryrefslogtreecommitdiffstats
path: root/Doc/library/shelve.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-07-21 11:49:39 (GMT)
committerGitHub <noreply@github.com>2023-07-21 11:49:39 (GMT)
commit84e52171b541ecc01f2d738cf82f5d4199a4bce7 (patch)
treed71b78f93d8cc1c1baa5c45435a75b130dfed5d2 /Doc/library/shelve.rst
parent4be0f157ea7000ded8d4a3ae818a74b026f1fed3 (diff)
downloadcpython-84e52171b541ecc01f2d738cf82f5d4199a4bce7.zip
cpython-84e52171b541ecc01f2d738cf82f5d4199a4bce7.tar.gz
cpython-84e52171b541ecc01f2d738cf82f5d4199a4bce7.tar.bz2
[3.12] gh-106909: Use role :const: for referencing module constants (GH-106910) (GH-106956)
(cherry picked from commit 4b9948617f91175783609769aa6160e5b49b9ccc)
Diffstat (limited to 'Doc/library/shelve.rst')
-rw-r--r--Doc/library/shelve.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/shelve.rst b/Doc/library/shelve.rst
index dc87af3..01314f4 100644
--- a/Doc/library/shelve.rst
+++ b/Doc/library/shelve.rst
@@ -25,7 +25,7 @@ lots of shared sub-objects. The keys are ordinary strings.
database file is opened for reading and writing. The optional *flag* parameter
has the same interpretation as the *flag* parameter of :func:`dbm.open`.
- By default, pickles created with :data:`pickle.DEFAULT_PROTOCOL` are used
+ By default, pickles created with :const:`pickle.DEFAULT_PROTOCOL` are used
to serialize values. The version of the pickle protocol can be specified
with the *protocol* parameter.
@@ -42,7 +42,7 @@ lots of shared sub-objects. The keys are ordinary strings.
mutated).
.. versionchanged:: 3.10
- :data:`pickle.DEFAULT_PROTOCOL` is now used as the default pickle
+ :const:`pickle.DEFAULT_PROTOCOL` is now used as the default pickle
protocol.
.. versionchanged:: 3.11
@@ -119,7 +119,7 @@ Restrictions
A subclass of :class:`collections.abc.MutableMapping` which stores pickled
values in the *dict* object.
- By default, pickles created with :data:`pickle.DEFAULT_PROTOCOL` are used
+ By default, pickles created with :const:`pickle.DEFAULT_PROTOCOL` are used
to serialize values. The version of the pickle protocol can be specified
with the *protocol* parameter. See the :mod:`pickle` documentation for a
discussion of the pickle protocols.
@@ -143,7 +143,7 @@ Restrictions
Added context manager support.
.. versionchanged:: 3.10
- :data:`pickle.DEFAULT_PROTOCOL` is now used as the default pickle
+ :const:`pickle.DEFAULT_PROTOCOL` is now used as the default pickle
protocol.