fork download
  1. class Foo:
  2. def __init__(self, values = []):
  3. self.values = values
  4.  
  5. print(Foo.__init__.__defaults__)
  6.  
  7. a = Foo()
  8. a.values.append(1)
  9.  
  10. print(Foo.__init__.__defaults__)
Success #stdin #stdout 0.01s 27664KB
stdin
Standard input is empty
stdout
([],)
([1],)