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 rhettinger
Recipients rhettinger, stutzbach, ysj.ray
Date 2010-09-02.09:04:18
SpamBayes Score 9.13654e-05
Marked as misclassified No
Message-id <1283418263.3.0.634667533576.issue8743@psf.upfronthosting.co.za>
In-reply-to
Content
Rough cut at a first patch is attached.

Still thinking about whether Set operations should be accepting any iterable or whether they should be tightened to expect other Set instances.  The API for set() came from set.py which was broadly discussed and widely exercised.  Guido was insistent that non-sets be excluded from the operator interactions (list.__iadd__ being on his list of regrets).   That was probably a good decision, but the Set API violated this norm and it did not include named methods like difference(), update(), and intersection() to handle the iterable cases.

Also, still thinking about whether the comparison operators should be making tight or loose checks.
History
Date User Action Args
2010-09-02 09:04:23rhettingersetrecipients: + rhettinger, stutzbach, ysj.ray
2010-09-02 09:04:23rhettingersetmessageid: <1283418263.3.0.634667533576.issue8743@psf.upfronthosting.co.za>
2010-09-02 09:04:20rhettingerlinkissue8743 messages
2010-09-02 09:04:20rhettingercreate