News for hackers. Stuff that matters.
Re:Why C++ Sails When the Vasa Sank [pdf] by cheez on Tuesday June 24, 2014 @11:36AM (#7938310)
def doappend_dwim(arg = []): arg.append('a') return arg

assert(doappend_dwim([]) == ['a']) assert(doappend_dwim() == ['a']) assert(doappend_dwim() == ['a','a'])

There are no comments on this comment yet.