1
Vote

Warn about reused dict keys

description

When asigning dict, warn about doubled keys:
a = {'bla': 1,
     'g': 2,
     'bla': 3}
the second 'bla' seem's like an error so it's recommand to mark it or warn about.

comments

pminaev wrote Jan 2 at 8:28 PM

PyLint reports this, so resolving https://pytools.codeplex.com/workitem/162 would also solve this.