<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>Hi,</div><div><br></div><div>I was reading a book on Python-3 programming recently and the book stated that, while there is an __init__ method for initializing objects, there was a __del__ method but the __del__ method is not guaranteed to be called when an object is destroyed.</div><div><br></div><div>If there is code in the __init__ method that allocates resources (memory, file opens, etc.), how do these resources get cleaned up when an object is destroyed?  Custom method? </div><div><br></div><div>At the moment, this architecture seems a bit asymmetric if the __del__ method is not called.</div><div><br></div><div>Thanks,</div><div>Randy</div><div><br></div><div style="position:fixed"></div></div><br>



      </body></html>