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 daniel.urban, rhettinger, stutzbach, ysj.ray
Date 2010-12-15.01:53:12
SpamBayes Score 0.0914894
Marked as misclassified No
Message-id <1292377997.22.0.390032053991.issue8743@psf.upfronthosting.co.za>
In-reply-to
Content
Would it be sufficient to:

1) Restrict collections.Set()'s operators to accept collection.Set but not arbitrary iterables, and
2) Fix Issue2226 and let set() | MySimpleSet() work via collections.Set.__ror__

Attached is a patch that implements this approach, nominally fixing both this and Issue2226.

This solutions seems much too simple in light of how long I've been thinking about these bugs.  I suspect there are code hobgoblins waiting to ambush me. ;)
History
Date User Action Args
2010-12-15 01:53:17stutzbachsetrecipients: + stutzbach, rhettinger, daniel.urban, ysj.ray
2010-12-15 01:53:17stutzbachsetmessageid: <1292377997.22.0.390032053991.issue8743@psf.upfronthosting.co.za>
2010-12-15 01:53:13stutzbachlinkissue8743 messages
2010-12-15 01:53:13stutzbachcreate