News for hackers. Stuff that matters.
Re:Python's Mutable Default Problem by clay on Sunday February 20, 2011 @12:13PM (#2242344)
"stuff = stuff or []"

This would fail to have expected behaviour here:

fill_list = []

stuff = function(info, full_list)

print fill_list

use the if list is None: paradigm

There are no comments on this comment yet.