➜

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.

作者 ssmout
收信人 ssmout
日期 2009-07-25.15:24:19
SpamBayes Score 2.8654483e-06
Marked as misclassified 否
Message-id <1248535461.31.0.573143089601.issue6573@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2009-07-25 15:24:21ssmout修改recipients: + ssmout
2009-07-25 15:24:21ssmout修改messageid: <1248535461.31.0.573143089601.issue6573@psf.upfronthosting.co.za>
2009-07-25 15:24:20ssmout链接issue6573 messages
2009-07-25 15:24:19ssmout创建