From d052aebca54a82cc6dd42f682f8eef46c26a7008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Wed, 20 Dec 2023 11:38:29 +0000 Subject: [PATCH 1/2] Update datamodel.rst --- Doc/reference/datamodel.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 5e3757e1f5c6f6..b1d8b6bcdf3807 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -2811,7 +2811,7 @@ through the object's keys; for sequences, it should iterate through the values. the accepted keys should be integers and slice objects. Note that the special interpretation of negative indexes (if the class wishes to emulate a :term:`sequence` type) is up to the :meth:`__getitem__` method. If *key* is - of an inappropriate type, :exc:`TypeError` may be raised; if of a value + of an inappropriate type, :exc:`TypeError` may be raised; if a value outside the set of indexes for the sequence (after any special interpretation of negative values), :exc:`IndexError` should be raised. For :term:`mapping` types, if *key* is missing (not in the container), From 6075da8923dfe241b44b3b765d220a3f61cb3b15 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Wed, 20 Dec 2023 11:50:52 +0000 Subject: [PATCH 2/2] Update Doc/reference/datamodel.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com> --- Doc/reference/datamodel.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index b1d8b6bcdf3807..c774d75433420e 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -2811,7 +2811,7 @@ through the object's keys; for sequences, it should iterate through the values. the accepted keys should be integers and slice objects. Note that the special interpretation of negative indexes (if the class wishes to emulate a :term:`sequence` type) is up to the :meth:`__getitem__` method. If *key* is - of an inappropriate type, :exc:`TypeError` may be raised; if a value + of an inappropriate type, :exc:`TypeError` may be raised; if *key* is a value outside the set of indexes for the sequence (after any special interpretation of negative values), :exc:`IndexError` should be raised. For :term:`mapping` types, if *key* is missing (not in the container),