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 mark.dickinson
Recipients SilentGhost, carandraug, mark.dickinson, remi.lapeyre, rhettinger, xtreak
Date 2018-11-29.18:31:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543516285.14.0.788709270274.issue35338@psf.upfronthosting.co.za>
In-reply-to
Content
> The intersection of an empty set of sets is either the empty set [...]

Nope, it's never the empty set, unless you're using a *very* unusual definition.

The intersection of a collection X of sets is the set of all x in the universe such that x is in S for all S in X. If X is empty, that condition is vacuously true, and you simply get the set of all x.

There are universe problems here, but giving the empty set is definitely wrong.

OTOH, the union of an empty collection of sets _is_ unambiguously the empty set, and the request for `set.union(*args)` to be valid regardless of the length of args seems reasonable to me. Without that validity, there's a potential corner-case bug where `set.union(*args)` potentially fails when `args` is empty.
History
Date User Action Args
2018-11-29 18:31:25mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, SilentGhost, remi.lapeyre, xtreak, carandraug
2018-11-29 18:31:25mark.dickinsonsetmessageid: <1543516285.14.0.788709270274.issue35338@psf.upfronthosting.co.za>
2018-11-29 18:31:25mark.dickinsonlinkissue35338 messages
2018-11-29 18:31:25mark.dickinsoncreate