mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
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. |
||
|---|---|---|
| .. | ||
| compound_stmts.rst | ||
| datamodel.rst | ||
| executionmodel.rst | ||
| expressions.rst | ||
| grammar.rst | ||
| import.rst | ||
| index.rst | ||
| introduction.rst | ||
| lexical_analysis.rst | ||
| simple_stmts.rst | ||
| toplevel_components.rst | ||