Skip to content Skip to sidebar Skip to footer
Showing posts with the label Destructor

Lifetime Of Static Class Members/class References?

I was asked to show how to do a singleton like solution for the old chestnut of a special logger. … Read more Lifetime Of Static Class Members/class References?

Is Object.__del__(self) The Most Appropriate Place To Flush A Logging Class?

I have a custom logging class for my Python script with a flush() method which print()s the content… Read more Is Object.__del__(self) The Most Appropriate Place To Flush A Logging Class?