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 stutzbach
Recipients aronacher, barry, benjamin.peterson, georg.brandl, rhettinger, stutzbach
Date 2010-12-15.00:55:02
SpamBayes Score 0.00070360885
Marked as misclassified No
Message-id <1292374507.17.0.810977401268.issue2226@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2010-12-15 00:55:07stutzbachsetrecipients: + stutzbach, barry, georg.brandl, rhettinger, benjamin.peterson, aronacher
2010-12-15 00:55:07stutzbachsetmessageid: <1292374507.17.0.810977401268.issue2226@psf.upfronthosting.co.za>
2010-12-15 00:55:02stutzbachlinkissue2226 messages
2010-12-15 00:55:02stutzbachcreate