0

I am trying to find out if it is possible that a method exists out there in the python class that is invoked before or during garbage collection.

What i intend to do is to close any database connection just before a class is garbage collected.

Could someone point me in the right direction?

Smack Alpha
  • 1,828
  • 1
  • 17
  • 37
AKJ
  • 749
  • 6
  • 29

0 Answers0