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 ssmout
Recipients ssmout
Date 2009-07-25.15:24:19
SpamBayes Score 2.8654483e-06
Marked as misclassified No
Message-id <1248535461.31.0.573143089601.issue6573@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-07-25 15:24:21ssmoutsetrecipients: + ssmout
2009-07-25 15:24:21ssmoutsetmessageid: <1248535461.31.0.573143089601.issue6573@psf.upfronthosting.co.za>
2009-07-25 15:24:20ssmoutlinkissue6573 messages
2009-07-25 15:24:19ssmoutcreate