Message90925
When calling the union method of a set with several arguments, if one of
those sets is the original set, all arguments appearing after it are
ignored. For example:
x = set()
x.union(set([1]), x, set([2]))
evaluates to set([1]), not set([1, 2]) as expected. As another example,
since all empty frozensets are the same,
frozenset().union(frozenset([1]), frozenset(), frozenset([2]))
also evaluates to just frozenset([1]).
The fix is trivial, so I'm attaching a patch. |
|
Date |
User |
Action |
Args |
2009-07-25 15:24:21 | ssmout | set | recipients:
+ ssmout |
2009-07-25 15:24:21 | ssmout | set | messageid: <1248535461.31.0.573143089601.issue6573@psf.upfronthosting.co.za> |
2009-07-25 15:24:20 | ssmout | link | issue6573 messages |
2009-07-25 15:24:19 | ssmout | create | |
|