News for hackers. Stuff that matters.
Re:Python: Common Newbie Mistakes, Part 1 by the1 on Sunday July 07, 2013 @07:47AM (#6001787)
no, default parameter should not be evaluated every time the function gets called.

current behavior is totally fine. it is well defined that somelist.append(x) appends x to somelist inplace.

There are no comments on this comment yet.