On 2013-09-12, Markus Rother <pyt...@markusrother.de> wrote: > On 10.09.2013 08:09, Steven D'Aprano wrote: >> What design mistakes, traps or gotchas do you think Python has? Gotchas >> are not necessarily a bad thing, there may be good reasons for it, but >> they're surprising. > > I have one more: > > Dictionaries should iterate over their items instead of their keys. > > Looking forward to contrary opinions.
Consider the 'in' operator. -- Neil Cerutti -- https://mail.python.org/mailman/listinfo/python-list