cpython/Doc/reference
Miss Islington (bot) 591bf41609
[3.9] [doc] bpo-45680: Disambiguate `__getitem__ and __class_getitem__` in the data model (GH-29389) (GH-29619)
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:41:09 +01:00
..
compound_stmts.rst [3.9] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28512) 2021-09-22 17:32:04 +02:00
datamodel.rst [3.9] [doc] bpo-45680: Disambiguate `__getitem__ and __class_getitem__` in the data model (GH-29389) (GH-29619) 2021-11-18 18:41:09 +01:00
executionmodel.rst [3.9]bpo-45463: Clarify that global statements allows multiple names (GH-28851) (GH-28990) 2021-10-16 10:01:14 -04:00
expressions.rst bpo-45003: Change __div__ to __truediv__ in py3 language reference. (GH-27951) (GH-27962) 2021-08-26 10:03:18 +03:00
grammar.rst [3.9] bpo-40939: Use the new grammar for the grammar specification documentation (GH-19969) (#21641) 2020-07-27 12:00:42 -07:00
import.rst bpo-35181: Correct importlib documentation for some module attributes (GH-15190) 2020-10-21 14:39:41 -07:00
index.rst
introduction.rst bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) 2020-09-18 00:27:21 -07:00
lexical_analysis.rst bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) 2020-09-18 00:27:21 -07:00
simple_stmts.rst Update doc as relative import can be used with star import (GH-25667) (GH-26122) 2021-05-14 07:25:40 -07:00
toplevel_components.rst bpo-41762: Fix usage of productionlist markup in the doc (GH-22281) 2020-09-18 00:27:21 -07:00