(Recent Entries) (Archive) (Friends) (User Info)
>>> def something(x = []): ... x += ['foo'] ... return x ... >>> something() ['foo'] >>> something() ['foo', 'foo'] >>> something() ['foo', 'foo', 'foo'] >>> something([1]) [1, 'foo'] >>> something() ['foo', 'foo', 'foo', 'foo']