|
|
|
|
|
by StavrosK
3315 days ago
|
|
In that case, by far the biggest Python gotcha is: def do_stuff(mylist=[]):
mylist.append("thing")
Which will lead to the list containing N items after N invocations (i.e. the second function call won't start with an empty list). |
|