How to call the __del__ method?
        Posted  
        
            by Verrtex
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Verrtex
        
        
        
        Published on 2009-09-26T15:49:52Z
        Indexed on 
            2010/03/16
            8:26 UTC
        
        
        Read the original article
        Hit count: 351
        
I am reading a code. There is a class in which __del__ method is defined. I figured out that this method is used to destroy an instance of the class. However, I cannot find a place where this method is used. The main reason for that is that I do not know how this method is used, probably not like that: obj1.del(). So, my questions is how to call the __del__ method? Thank you for any help.
© Stack Overflow or respective owner