Message233415
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). |
|
Date |
User |
Action |
Args |
2015-01-04 12:50:10 | martin.panter | set | recipients:
+ martin.panter, rhettinger, Devin Jeanpierre |
2015-01-04 12:50:10 | martin.panter | set | messageid: <1420375810.91.0.189172287387.issue23161@psf.upfronthosting.co.za> |
2015-01-04 12:50:10 | martin.panter | link | issue23161 messages |
2015-01-04 12:50:10 | martin.panter | create | |
|