Message 174535 - Python tracker (original) (raw)
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}