Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-36679: Rename duplicate test_class_getitem function (GH-12892) | Windson yang | 2019-04-22 | 1 | -1/+1 |
| | |||||
* | bpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857) | Ivan Levkivskyi | 2019-02-17 | 1 | -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. | ||||
* | bpo-32226: Make __class_getitem__ an automatic class method. (#5098) | Serhiy Storchaka | 2018-01-04 | 1 | -2/+11 |
| | |||||
* | Add tests for using PEP560 with classes implemented in C. (#4883) | Serhiy Storchaka | 2017-12-16 | 1 | -0/+18 |
| | | | Based on tests from #4878 | ||||
* | bpo-32226: Implementation of PEP 560 (core components) (#4732) | Ivan Levkivskyi | 2017-12-14 | 1 | -0/+252 |
This part of the PEP implementation adds support for __mro_entries__ and __class_getitem__ by updating __build_class__ and PyObject_GetItem. |