My pet peeve with python is the classic:
return x,
I have never wanted to declare a tuple without surrounding it with (). Too bad it's not a syntax error in python 3.Also, as opposed to one of his examples, if you are using python 2.7, declare your exception blocks as:
except (FooException, BarException) as e:
It's forward compatible with python 3, it's easier to read and the syntax errors are clearer.