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,517
  • 1
  • 14
  • 31
AKJ
  • 619
  • 4
  • 24

0 Answers0