This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author konstantin danilov
Recipients ajung, asvetlov, konstantin danilov, yselivanov
Date 2019-06-26.21:04:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561583087.7.0.431508658842.issue37402@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-06-26 21:04:47konstantin danilovsetrecipients: + konstantin danilov, ajung, asvetlov, yselivanov
2019-06-26 21:04:47konstantin danilovsetmessageid: <1561583087.7.0.431508658842.issue37402@roundup.psfhosted.org>
2019-06-26 21:04:47konstantin danilovlinkissue37402 messages
2019-06-26 21:04:47konstantin danilovcreate