Re:What Python learned from economics
by LogicHoleFlaw on Tuesday November 18, 2008 @04:10PM
(#368730)
The Python default parameter rules cause a_list=[] to share the same mutable list between all invocations of the function. That's probably not what you want. If you set it to the immutable None then it doesn't matter that the instance is shared.
[ Parent
| on HN ]
There are no comments on this comment yet.