Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
return the current context 

        def current():
    """ return the current context """
    if stack:
        return stack[-1]
    else:
        return None
        


src/m/r/mr.bent-1.0a1/mr/bent/wrapper.py   mr.bent(Download)
from mavolio import create, destroy, current, add, filters
from monkey import funcinfo, wrap
 
 
def fqfn(function):
    def wrapper(function, *args, **kwargs):
        context = current()
        if context is not None:
            data, result = handler(function, *args, **kwargs)
            add(context, (None, dottedname, name), data)