konstantin danilov <koder.m...@gmail.com> added the comment:
Same error, python3.7. I have attached minifyed code version. It runs into infinite recursion due to __setattr__ call inside 'with' statement on top of same object. As result: > python /tmp/text.py Fatal Python error: Cannot recover from stack overflow. Current thread 0x00007f6bb073d740 (most recent call first): File "/tmp/text.py", line 10 in __getattr__ ... File "/tmp/text.py", line 11 in __getattr__ File "/tmp/text.py", line 28 in __exit__ File "/tmp/text.py", line 13 in __getattr__ ... File "/tmp/text.py", line 11 in __getattr__ ... [2] 22121 abort (core dumped) python /tmp/text.py ---------- components: +Interpreter Core -asyncio nosy: +konstantin danilov versions: -Python 3.8, Python 3.9 Added file: https://bugs.python.org/file48439/text.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37402> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com