Message123995
Minor point of clarity: you mean __rand__ not __radd__, right? Set objects do not support addition at all.
Adding the __rand__ methods to collections.Set in and of itself is straightforward:
def __rsub__(self, other):
return self._from_iterable(other) - self
__ror__ = __or__
__rand__ = __and__
__rxor__ = __xor__
I'm not sure I understand the can of worms. While replacing concrete tests with abstract tests may be worthwhile goal in its own right, why is it necessary to solve the particular shortcoming of missing __r* methods?
Probably I'm missing something. With just the minimal change above, what kinds of things do you expect to fail?
(assuming Issue8743 is also fixed) |
|
Date |
User |
Action |
Args |
2010-12-15 00:55:07 | stutzbach | set | recipients:
+ stutzbach, barry, georg.brandl, rhettinger, benjamin.peterson, aronacher |
2010-12-15 00:55:07 | stutzbach | set | messageid: <1292374507.17.0.810977401268.issue2226@psf.upfronthosting.co.za> |
2010-12-15 00:55:02 | stutzbach | link | issue2226 messages |
2010-12-15 00:55:02 | stutzbach | create | |
|