diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-07-21 09:34:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 09:34:30 (GMT) |
commit | d036db728ea3d54509cbad06df74e2d9a31fbec8 (patch) | |
tree | fd69c04729af3029a8ac11e8771d4d4893b4ffc1 /Doc/reference | |
parent | 8d397ee8259fa0f81598a452438fc335267ca260 (diff) | |
download | cpython-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.rst | 4 |
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. |