Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Foo:
def __init__(self, x=[]):
self.x = x
f = Foo()
f.x.append(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment