fork download
  1. from sys import exit
  2.  
  3. class Bar(object):
  4. def __init__(self):
  5. print("Bar1 init running")
  6. self.bar = self
  7.  
  8. def __del__(self):
  9. print("Destructor Bar")
  10.  
  11. b = Bar()
  12. exit()
Success #stdin #stdout 0.09s 14112KB
stdin
Standard input is empty
stdout
Bar1 init running
Destructor Bar