summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-07-21 11:51:00 (GMT)
committerGitHub <noreply@github.com>2023-07-21 11:51:00 (GMT)
commitffc7678f4683a63180c1321334c76e9b3e09b0a5 (patch)
treed30f26c7bf420a4c41b656b2e3e8e8c48a9242cf /Doc/reference
parent84e52171b541ecc01f2d738cf82f5d4199a4bce7 (diff)
downloadcpython-ffc7678f4683a63180c1321334c76e9b3e09b0a5.zip
cpython-ffc7678f4683a63180c1321334c76e9b3e09b0a5.tar.gz
cpython-ffc7678f4683a63180c1321334c76e9b3e09b0a5.tar.bz2
[3.12] gh-106892: Use roles :data: and :const: for referencing module variables (GH-106894) (GH-106954)
(cherry picked from commit d036db728ea3d54509cbad06df74e2d9a31fbec8)
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/datamodel.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index e8f9775..ce36bff 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -2499,8 +2499,8 @@ through the object's keys; for sequences, it should iterate through the values.
.. impl-detail::
- In CPython, the length is required to be at most :attr:`sys.maxsize`.
- If the length is larger than :attr:`!sys.maxsize` some features (such as
+ In CPython, the length is required to be at most :data:`sys.maxsize`.
+ If the length is larger than :data:`!sys.maxsize` some features (such as
:func:`len`) may raise :exc:`OverflowError`. To prevent raising
:exc:`!OverflowError` by truth value testing, an object must define a
:meth:`__bool__` method.