summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-07-21 09:34:30 (GMT)
committerGitHub <noreply@github.com>2023-07-21 09:34:30 (GMT)
commitd036db728ea3d54509cbad06df74e2d9a31fbec8 (patch)
treefd69c04729af3029a8ac11e8771d4d4893b4ffc1 /Doc/reference
parent8d397ee8259fa0f81598a452438fc335267ca260 (diff)
downloadcpython-d036db728ea3d54509cbad06df74e2d9a31fbec8.zip
cpython-d036db728ea3d54509cbad06df74e2d9a31fbec8.tar.gz
cpython-d036db728ea3d54509cbad06df74e2d9a31fbec8.tar.bz2
gh-106892: Use roles :data: and :const: for referencing module variables (GH-106894)
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 8a10a34..cbf8541 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.