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 martin.panter
Recipients Devin Jeanpierre, martin.panter, rhettinger
Date 2015-01-04.12:50:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420375810.91.0.189172287387.issue23161@psf.upfronthosting.co.za>
In-reply-to
Content
For what it’s worth, every now and then I have to stop and remember that I can’t do this sort of thing:

unsupported_keys = config_dict.keys().difference(supported_list)

though it is not a big problem to rewrite it as

unsupported_keys = config_dict.keys() - set(supported_list)

Also it looks like one can already effectively do x.copy() using the existing immutable Set operators, so that worm can is already opened:

>>> ListBasedSet("abc") & ListBasedSet("abc")
<__main__.ListBasedSet object at 0x7f419951b860>

On the other hand, a matching almost equivalent operator does exist for a.issubset(b): a <= b, or a.__le__(b).
History
Date User Action Args
2015-01-04 12:50:10martin.pantersetrecipients: + martin.panter, rhettinger, Devin Jeanpierre
2015-01-04 12:50:10martin.pantersetmessageid: <1420375810.91.0.189172287387.issue23161@psf.upfronthosting.co.za>
2015-01-04 12:50:10martin.panterlinkissue23161 messages
2015-01-04 12:50:10martin.pantercreate