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

SilentGhost report at bugs.python.org
Wed Nov 28 10:24:11 EST 2018


SilentGhost <ghost.adh at runbox.com> added the comment:

You can write your code like this:

   set().union(*sequence)

as well as: a.union(b, c) if you already have a set object available.

----------
nosy: +SilentGhost
versions: +Python 3.8 -Python 3.7

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


More information about the Python-bugs-list mailing list