summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
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 112d5f8..d2a39c5 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -2482,8 +2482,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.