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

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

        def exec_f(object_, globals_=None, locals_=None):
    if not globals_ and not locals_:
       frame = inspect.stack()[1][0]
       globals_ = frame.f_globals
       locals_ = frame.f_locals
    elif globals_ and not locals_:
        locals_ = globals_
    exec object_ in globals_, locals_
        


src/a/s/astkit-0.5.4/astkit/processor.py   astkit(Download)
major = sys.version_info[0]
if major == 2:
    from astkit.compat.py2 import exec_f
elif major == 3:
    from astkit.compat.py3 import exec_f