Guido van Rossum <gu...@python.org> added the comment:
That sentence has been a lie for a long time (from the start?). Any type can define __getitem__ and get this behavior, though in this case it is done through __class_getitem__ (PEP NNN). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42010> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com