Python decorators: howto list wrapped functions by decorator
<p>Is that possible to use python decorators to mark a method, and get it for the later use, if I don't know the name of the wrapped function?</p>

<p>Here is the example, and I don't know the name of method_with_custom_name:</p>

<pre><code>@run_this_method
def method_with_custom_name(my_arg):
    return "The args is: " + my_arg

def _init_and_run():
    # Here, I want to get and call method_with_custom_name
    # but I don't know it's name, 
    # so the next line isn't valid.
    return run_this_method()(my_arg_value)

def run_this_method(m):
    def w(my_arg):
        _do_some_magic(my_arg, m)
    return w

def _do_some_magic(callback_arg, callback):
     if some_checks():
          callback(callback_arg)
</code></pre>

<p>So how can I get a list of methods wrapped with <code>@run_this_method</code></p>