Friday, April 24, 2009

WOW. found out my bu

WOW. found out my bug. after. 5+ hours!!! Python list default param reuses the same list... def foo(l=[]): l += [random.rand(1,100)] return l

No comments: