Beispiel #1
0
#import networkx
import pprint
import dag
import sys
import logging

gvar = dag.var(20)

@dag.function
def foo(a, b, c):
    x = a * b + c - bar()
    
@dag.function
def bing(l):
    f = sys._getframe(1) #co_flags 67
    return l * 3
    
@dag.function
def bar(p, q):
    f = sys._getframe(1)
    return p * q * bing(p)


class MyClass(object):
    def __init__(self):
        self._x = 3
        
    @dag.meth
    def mbaz(self, arg1, arg2):
        f = sys._getframe(1)
        return self.mfuz(arg1, arg2) + bar(arg1, arg2)
Beispiel #2
0
 def __init__(self, x):
     self._x = dag.var(x)