Staging
v0.8.1
https://github.com/python/cpython
Revision a7f929db605326da452fbdeebfe341afa9316d25 authored by Miss Islington (bot) on 17 February 2019, 23:33:04 UTC, committed by GitHub on 17 February 2019, 23:33:04 UTC

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>
1 parent 6f35219
History
Tip revision: a7f929db605326da452fbdeebfe341afa9316d25 authored by Miss Islington (bot) on 17 February 2019, 23:33:04 UTC
bpo-35992: Use PySequence_GetItem only if sq_item is not NULL (GH-11857)
Tip revision: a7f929d
File Mode Size
Grammar -rw-r--r-- 6.3 KB

back to top