python/cpython
3.14
backport-7f7ff4c-3.14
A dict with non-string keys raised TypeError, because the keys were sorted before skipping non-string keys. (cherry picked from commit 7f7ff4c99d1f53424be8c323c50f3623c3488ba1)
Co-authored-by: ankhikarmakar [email protected] Co-authored-by: VanshAgarwal24036 [email protected] Co-authored-by: Serhiy Storchaka [email protected] Co-authored-by: Claude Opus 5 (1M context) [email protected]