diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-11-18 17:41:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 17:41:09 (GMT) |
commit | 591bf416090fb00795eed51f6863e3c5d9036c89 (patch) | |
tree | 580c01a3b002f1c0735525e3b583a243cf7028a2 /Tools/ssl | |
parent | 9450c751cc2053b1c2e03ec92ed822a41223b142 (diff) | |
download | cpython-591bf416090fb00795eed51f6863e3c5d9036c89.zip cpython-591bf416090fb00795eed51f6863e3c5d9036c89.tar.gz cpython-591bf416090fb00795eed51f6863e3c5d9036c89.tar.bz2 |
[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 31b3a70edb1216bdc8fab3b2eafd8ddb00487f41)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Tools/ssl')
0 files changed, 0 insertions, 0 deletions