[issue35338] set union/intersection/difference could accept zero arguments

Mark Dickinson report at bugs.python.org
Thu Nov 29 07:52:22 EST 2018


Mark Dickinson <dickinsm at gmail.com> added the comment:

What would the intersection of zero sets be? The only reasonable mathematical answer is either "not defined", or "the universe" - i.e., the set containing everything, but what would "everything" be in a Python context?

I also don't see how a difference of zero sets makes any sense; you need a set to start subtracting items from.

So I think this feature request only really applies to union.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35338>
_______________________________________


More information about the Python-bugs-list mailing list