[issue16385] evaluating dict with repeated keys gives no error/warnings

2012-11-02 Thread Albert Ferras
New submission from Albert Ferras: I normally use dictionaries for configuration purposes in python, but there's a problem where I have a dictionary with many key-values and one of the keys is repeated. For example: lives_in = { 'lion': ['Africa', 'America], 'parrot': ['Europe

[issue16385] evaluating dict with repeated keys gives no warnings/errors

2012-11-02 Thread Albert Ferras
Albert Ferras added the comment: I would use json, but it allows me to set list/strings, etc.. not python objects like I'd want -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16385

[issue16385] evaluating dict with repeated keys gives no warnings/errors

2012-11-02 Thread Albert Ferras
Albert Ferras added the comment: sorry: *it only allows me -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16385 ___ ___ Python-bugs-list mailing

[issue16385] evaluating dict with repeated keys gives no warnings/errors

2012-11-02 Thread Albert Ferras
Albert Ferras added the comment: also, it creates confusion when this happens -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16385