is there any way to run a other function after a function run finish?
<pre><code>def foo():
    pass

def bar():
    print 'good bay'
</code></pre>

<p>two function like blow
and now i want to run bar function after foo run finish</p>

<p>is there some method like class use <code>__del__</code>?
as i know in class method i can use <code>__del__</code> like follow:</p>

<pre><code> class A(object):
    def __init__(self):
        pass
    def __del__(self):
        bar()
</code></pre>

<p>but i can't use <code>foo.__del__</code>
is there any other method to do this ?</p>
