News for hackers. Stuff that matters.
Re:What Python learned from economics by shadytrees on Tuesday November 18, 2008 @03:39PM (#368688)
It's an obscure Python quirk that default parameters are constructed during compilation time and then never re-constructed. So, to illustrate:

  >>> def hello(a=[]): a.append('hello'); return a;
  ... 
  >>> hello()
  ['hello']
  >>> hello()
  ['hello', 'hello']
On post, what mindslight said.

There are no comments on this comment yet.