summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_genericclass.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.7] bpo-36679: Rename duplicate test_class_getitem function (GH-12892) ↵Ivan Levkivskyi2019-04-271-1/+1
| | | | | | | (GH-12978) (cherry picked from commit d437012cdd4a38b5b3d05f139d5f0a28196e4769) Co-authored-by: Windson yang <wiwindson@outlook.com>
* bpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857)Miss Islington (bot)2019-02-171-1/+8
| | | | | | Not using `__class_getitem__()` fallback if there is a non-subcriptable metaclass was caused by a certain asymmetry between how `PySequenceMethods` and `PyMappingMethods` are used in `PyObject_GetItem`. This PR removes this asymmetry. No tests failed, so I assume it was not intentional. (cherry picked from commit ac28147e78c45a6217d348ce90ca5281d91f676f) Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
* bpo-32226: Make __class_getitem__ an automatic class method. (#5098)Serhiy Storchaka2018-01-041-2/+11
|
* Add tests for using PEP560 with classes implemented in C. (#4883)Serhiy Storchaka2017-12-161-0/+18
| | | Based on tests from #4878
* bpo-32226: Implementation of PEP 560 (core components) (#4732)Ivan Levkivskyi2017-12-141-0/+252
This part of the PEP implementation adds support for __mro_entries__ and __class_getitem__ by updating __build_class__ and PyObject_GetItem.