diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-07-21 11:49:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 11:49:21 (GMT) |
commit | cc76113cf823ebff76d346665bbf1218a40ed4c8 (patch) | |
tree | 78304581e099caca96d7ab5104e8d63fbdc76cd2 /Doc/reference | |
parent | 6bde1b9f049e35e557068bd8c6034ee9c6fe61dc (diff) | |
download | cpython-cc76113cf823ebff76d346665bbf1218a40ed4c8.zip cpython-cc76113cf823ebff76d346665bbf1218a40ed4c8.tar.gz cpython-cc76113cf823ebff76d346665bbf1218a40ed4c8.tar.bz2 |
[3.11] gh-106892: Use roles :data: and :const: for referencing module variables (GH-106894) (GH-106955)
(cherry picked from commit d036db728ea3d54509cbad06df74e2d9a31fbec8)
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 4 |
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. |