Do we need to delete "ImageDraw.Draw" after using it?

John Bokma john at castleamber.com
Wed Sep 20 14:02:35 EDT 2006


"Daniel Mark" <danielmarkhot at gmail.com> wrote:

> Is there any general rule that we must delete the object after using
> it?

In general: if the object is not destroyed when it goes out of scope (but 
later) and uses precious resources [1], or if a special clean up is 
required, you should delete it explicitly.


[1] like file handles

-- 
John                               MexIT: http://johnbokma.com/mexit/
                           personal page:       http://johnbokma.com/
        Experienced programmer available:     http://castleamber.com/
            Happy Customers: http://castleamber.com/testimonials.html



More information about the Python-list mailing list