[issue15085] set.union accepts not set iterables for all but the first argument.

Stefan Krastanov report at bugs.python.org
Sat Jun 16 11:09:09 CEST 2012


New submission from Stefan Krastanov <krastanov.stefan at gmail.com>:

>>> set.union(set([1,2]), [3])
set([1, 2, 3])

>>> set.union([1,2], [3])
TypeError: descriptor 'union' requires a 'set' object but received a 'list'


It seems a bit inconsistent. Is it justified somehow?

----------
components: None
messages: 162962
nosy: krastanov-stefan
priority: normal
severity: normal
status: open
title: set.union accepts not set iterables for all but the first argument.
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15085>
_______________________________________


More information about the Python-bugs-list mailing list