Python Pitfalls

ziggy on 2003-08-13T15:11:02

Hans Nowack has compiled a list of 10 pitfalls Python programmers may face.

I first started programming in the Reagan era. I don't know how many programming languages I've used over the years, but it's in the low double-digits. A lot of these rules feel quite counterintuitive and bizarre. Especially how += works differently based on the mutability of a variable's contents. Um, yeah.

Some of these issues may be corner cases. But the net result feels like an apologist's explanation of why Python is the way it is, not a reason for leaky abstractions from the language design or interpreter to get in your way when writing code.