News for hackers. Stuff that matters.
Re:Google's Python style guide by shawnps on Thursday April 19, 2012 @03:55AM (#3861874)
Regarding this one:

http://google-styleguide.googlecode.com/svn/trunk/pyguide.ht...

I commented about this on another post. There's a nice explanation here as to why using mutable objects as default values in function/method definitions is bad:

http://effbot.org/zone/default-values.htm

In short, it can be bad to set default arguments to mutable objects because the function keeps using the same object in each call.

Re:Google's Python style guide by toyg on Thursday April 19, 2012 @06:43AM (#3862290)
That's a classic Python gotcha, mentioned in all books and tutorials nowadays.