Serhiy Storchaka added the comment: There is also a crash with Python implementation of TextIOWrapper.
>>> import _pyio as io >>> t = io.TextIOWrapper(io.BytesIO()) >>> t.mode = t >>> t Fatal Python error: Cannot recover from stack overflow. Current thread 0xb74a9700 (most recent call first): File "/home/serhiy/py/cpython/Lib/_pyio.py", line 1982 in __repr__ File "/home/serhiy/py/cpython/Lib/_pyio.py", line 1992 in __repr__ [...] File "/home/serhiy/py/cpython/Lib/_pyio.py", line 1992 in __repr__ File "/home/serhiy/py/cpython/Lib/_pyio.py", line 1992 in __repr__ ... Aborted (core dumped) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25455> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com