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
CODEOWNERS -rw-r--r-- 1.9 KB
CONTRIBUTING.rst -rw-r--r-- 2.4 KB
PULL_REQUEST_TEMPLATE.md -rw-r--r-- 318 bytes
appveyor.yml -rw-r--r-- 1.1 KB
codecov.yml -rw-r--r-- 482 bytes

back to top