mirror of
https://github.com/python/cpython.git
synced 2026-01-02 21:43:49 +00:00
[3.11] Fix typo in datamodel docs (GH-113314) (#113315)
Fix typo in datamodel docs (GH-113314)
(cherry picked from commit 5a7cc667f8)
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
This commit is contained in:
parent
f1c27bebb2
commit
899f1c082c
1 changed files with 1 additions and 1 deletions
|
|
@ -2785,7 +2785,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 *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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue