#pitfall
2009
blog Python pitfall: Passing Mutable Objects as Default Args.
May 2009
I have a long and nested lists of parameters to throw out with a django template, but the visualization routine in the template processes them better if the parameters are ordered two by two. So I was trying to put together a simple function for reordering the original list accordingly. This is what I came up with: