cpython/Doc/reference
Alex Waygood 31b3a70edb
[doc] bpo-45680: Disambiguate `__getitem__ and __class_getitem__` in the data model (GH-29389)
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.
2021-11-18 16:54:25 +01:00
..
compound_stmts.rst Fix class pattern docs to refer to class patterns (GH-28849) 2021-10-10 22:12:51 +08:00
datamodel.rst [doc] bpo-45680: Disambiguate `__getitem__ and __class_getitem__` in the data model (GH-29389) 2021-11-18 16:54:25 +01:00
executionmodel.rst bpo-45463: Clarify that global statements allows multiple names (GH-28851) 2021-10-16 08:55:12 -04:00
expressions.rst [doc] minor fixes to expressions.rst (GH-29444) 2021-11-06 10:26:43 -07: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 [doc] Fix typos found using codespell (GH-28744) 2021-10-05 23:48:44 +02:00
index.rst
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 [docs] lexical_analysis: Expand the text on `_` (GH-28903) 2021-10-13 18:34:01 +02:00
simple_stmts.rst Update doc as relative import can be used with star import (GH-25667) 2021-05-13 22:37:19 -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