News for hackers. Stuff that matters.
Re:Where are we in the Python 3 transition? by raverbashing on Friday January 01, 2016 @05:13PM (#10823730)
Nah, do it like this

def foo(i,x=[]):

    x.append(i)
    
    return x
foo(1)

foo(2)

See what happens

There are no comments on this comment yet.