SIGN IN SIGN UP

bpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857)

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.
I
Ivan Levkivskyi committed
ac28147e78c45a6217d348ce90ca5281d91f676f
Parent: 1bf8845
Committed by GitHub <noreply@github.com> on 2/17/2019, 11:13:46 PM