Staging
v0.8.1
https://github.com/python/cpython
Revision 9ece9cd65cdeb0a1f6e60475bbd0219161c348ac authored by Serhiy Storchaka on 04 October 2020, 21:55:57 UTC, committed by GitHub on 04 October 2020, 21:55:57 UTC
Enable recursion checks which were disabled when get __bases__ of
non-type objects in issubclass() and isinstance() and when intern
strings. It fixes a stack overflow when getting __bases__ leads
to infinite recursion.

Originally recursion checks was disabled for PyDict_GetItem() which
silences all errors including the one raised in case of detected
recursion and can return incorrect result. But now the code uses
PyDict_GetItemWithError() and PyDict_SetDefault() instead.
1 parent 619f980
History
Tip revision: 9ece9cd65cdeb0a1f6e60475bbd0219161c348ac authored by Serhiy Storchaka on 04 October 2020, 21:55:57 UTC
bpo-41909: Enable previously disabled recursion checks. (GH-22536)
Tip revision: 9ece9cd
File Mode Size
c-api
data
distributing
distutils
extending
faq
howto
includes
install
installing
library
reference
tools
tutorial
using
whatsnew
Makefile -rw-r--r-- 8.5 KB
README.rst -rw-r--r-- 4.6 KB
about.rst -rw-r--r-- 1.5 KB
bugs.rst -rw-r--r-- 4.7 KB
conf.py -rw-r--r-- 7.1 KB
contents.rst -rw-r--r-- 538 bytes
copyright.rst -rw-r--r-- 451 bytes
glossary.rst -rw-r--r-- 52.3 KB
license.rst -rw-r--r-- 46.5 KB
make.bat -rw-r--r-- 5.5 KB
requirements.txt -rw-r--r-- 381 bytes
runtime.txt -rw-r--r-- 3 bytes

README.rst

back to top