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 yselivanov
Recipients georg.brandl, gvanrossum, larry, ncoghlan, oconnor663, pitrou, serhiy.storchaka, vstinner, yselivanov
Date 2015-12-02.19:12:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449083533.35.0.319593697385.issue25782@psf.upfronthosting.co.za>
In-reply-to
Content
> Yury, do we need to handle more complicated infinite loops, where "self" doesn't actually show up in the loop? Here's an example:

My patch works for your example too.  Since it checks for loops in __context__ setter, you shouldn't be able to create complicated loops.
History
Date User Action Args
2015-12-02 19:12:13yselivanovsetrecipients: + yselivanov, gvanrossum, georg.brandl, ncoghlan, pitrou, vstinner, larry, serhiy.storchaka, oconnor663
2015-12-02 19:12:13yselivanovsetmessageid: <1449083533.35.0.319593697385.issue25782@psf.upfronthosting.co.za>
2015-12-02 19:12:13yselivanovlinkissue25782 messages
2015-12-02 19:12:13yselivanovcreate