You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Recursive call causes core dump in assertRaises #87352
In following teststr.py, class MyString is nestedly instanced in method __getattr__(). This script will lead to a "core dump" in Python interpreter. My Python version is 3.9.1 and my operating system is Ubuntu 16.04.
teststr.py
+++++++++++++++++++++++++++++++++++++++++++
class StrError(str):
pass
Activity
CharlesFengY commentedon Feb 10, 2021
In following teststr.py, class MyString is nestedly instanced in method __getattr__(). This script will lead to a "core dump" in Python interpreter. My Python version is 3.9.1 and my operating system is Ubuntu 16.04.
teststr.py
+++++++++++++++++++++++++++++++++++++++++++
class StrError(str):
pass