Benjamin Peterson added the comment:
An error is out of the question for compatibility reasons. I think the idea for
a warning should be brought up on the python-ideas list. Silently rejecting
duplicates has a lot of precedent, though. For example, set literals and the
dict constructor:
>>> dict((("dfs", 2), ("dfs", 3)))
{'dfs' : 3}
----------
nosy: +benjamin.peterson
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16385>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com