Language design

Neil Cerutti neilc at norwich.edu
Thu Sep 12 15:18:19 EDT 2013


On 2013-09-12, Markus Rother <python at 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



More information about the Python-list mailing list