This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients Albert.Ferras, Ramchandra Apte, benjamin.peterson, ebfe, r.david.murray
Date 2012-11-02.15:49:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351871364.49.0.88641474248.issue16385@psf.upfronthosting.co.za>
In-reply-to
Content
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}
History
Date User Action Args
2012-11-02 15:49:24benjamin.petersonsetrecipients: + benjamin.peterson, r.david.murray, ebfe, Ramchandra Apte, Albert.Ferras
2012-11-02 15:49:24benjamin.petersonsetmessageid: <1351871364.49.0.88641474248.issue16385@psf.upfronthosting.co.za>
2012-11-02 15:49:24benjamin.petersonlinkissue16385 messages
2012-11-02 15:49:24benjamin.petersoncreate