cpython/Doc/reference
Miss Islington (bot) fde9f61e70
[3.10] [doc] bpo-45680: Disambiguate ``__getitem__`` and ``__class_getitem__`` in the data model (GH-29389) (GH-29620)
The documentation explaining Python's data model does not adequately explain
the differences between ``__getitem__`` and ``__class_getitem__``, nor does it
explain when each is called. There is an attempt at explaining
``__class_getitem__`` in the documentation for ``GenericAlias`` objects, but
this does not give sufficient clarity into how the method works. Moreover, it
is the wrong place for that information to be found; the explanation of
``__class_getitem__`` should be in the documentation explaining the data model.

This PR has been split off from GH-29335.
(cherry picked from commit 31b3a70edb)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-11-18 18:34:08 +01:00
..
compound_stmts.rst bpo-45640: [docs] Tokens are now clickable (GH-29260) (GH-29621) 2021-11-18 17:28:39 +01:00
datamodel.rst [3.10] [doc] bpo-45680: Disambiguate ``__getitem__`` and ``__class_getitem__`` in the data model (GH-29389) (GH-29620) 2021-11-18 18:34:08 +01:00
executionmodel.rst [3.10]bpo-45463: Clarify that global statements allows multiple names (GH-28851) (GH-28989) 2021-10-16 10:01:54 -04:00
expressions.rst bpo-45640: [docs] Tokens are now clickable (GH-29260) (GH-29621) 2021-11-18 17:28:39 +01:00
grammar.rst bpo-42485: [Doc] Link to PEP 617 from full grammar specification (GH-23532) 2020-11-30 19:08:26 +00:00
import.rst bpo-39452: Rewrite and expand __main__.rst (GH-26883) 2021-08-24 13:54:08 -07:00
index.rst Merge from 3.2: remove unneeded "Release" and "Date" markers from index pages. 2012-10-28 11:10:24 -07:00
introduction.rst bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) 2020-09-18 09:10:15 +02:00
lexical_analysis.rst bpo-45640: [docs] Tokens are now clickable (GH-29260) (GH-29621) 2021-11-18 17:28:39 +01:00
simple_stmts.rst Update doc as relative import can be used with star import (GH-25667) (GH-26121) 2021-05-14 07:26:40 -07:00
toplevel_components.rst bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) 2020-09-18 09:10:15 +02:00