From eff1a2b3ff31205a394f2e3398d769121e816fd7 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Sat, 23 Oct 2021 02:29:30 +0200 Subject: [PATCH] bpo-45583: Correct datamodel documentation of int() It should be noted that this part of the documentation is redundant with function.rst's documentation of int. This one was correctly updated with Python 3.8 --- Doc/reference/datamodel.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index f1334f047d4b73..a6eee22fa332cd 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -2577,8 +2577,8 @@ left undefined. return the value of the object truncated to an :class:`~numbers.Integral` (typically an :class:`int`). - If :meth:`__int__` is not defined then the built-in function :func:`int` - falls back to :meth:`__trunc__`. + The built-in function :func:`int` falls back to :meth:`__trunc__` if neither + :meth:`__int__` nor :meth:`__index__` is defined. .. _context-managers: