Message10071

Author jdemoor
Recipients jdemoor
Date 2015-05-21.05:48:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432187331.57.0.820848153085.issue2357@psf.upfronthosting.co.za>
In-reply-to
Content
The following code fails with an infinite recursion in Jython 2.7. It works well on CPython. The problem is apparent in SQLAlchemy's SortedSet implementation.


class TestSet(set):

    def difference_update(self, other):
        set.difference_update(self, other)
        return self

    __isub__ = difference_update

a = TestSet('a')
print a.difference_update(a) # inifinite recursion
History
Date User Action Args
2015-05-21 05:48:51jdemoorsetrecipients: + jdemoor
2015-05-21 05:48:51jdemoorsetmessageid: <1432187331.57.0.820848153085.issue2357@psf.upfronthosting.co.za>
2015-05-21 05:48:51jdemoorlinkissue2357 messages
2015-05-21 05:48:50jdemoorcreate