Message10072

Author jdemoor
Recipients jdemoor
Date 2015-05-21.05:55:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432187716.85.0.625022905995.issue2357@psf.upfronthosting.co.za>
In-reply-to
Content
The error occurs in a more general case than above (`other` doesn't need to be `self` or to contain the same members).

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(TestSet('b')) # inifinite recursion
History
Date User Action Args
2015-05-21 05:55:16jdemoorsetmessageid: <1432187716.85.0.625022905995.issue2357@psf.upfronthosting.co.za>
2015-05-21 05:55:16jdemoorsetrecipients: + jdemoor
2015-05-21 05:55:16jdemoorlinkissue2357 messages
2015-05-21 05:55:16jdemoorcreate