debug.py

Python

No description

Guest

Download Edit

class Test:
test = []
def __init__(self):
self.fill()
print len(self.test)
def fill(self):
self.test.append(1)
self.test.append(1)
test1 = Test()
test2 = Test()
# $ python2 debug.py
# 2
# 4