Message10072
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 |
|
Date |
User |
Action |
Args |
2015-05-21 05:55:16 | jdemoor | set | messageid: <1432187716.85.0.625022905995.issue2357@psf.upfronthosting.co.za> |
2015-05-21 05:55:16 | jdemoor | set | recipients:
+ jdemoor |
2015-05-21 05:55:16 | jdemoor | link | issue2357 messages |
2015-05-21 05:55:16 | jdemoor | create | |
|