示例#1
0
文件: natlog3.py 项目: ptarau/pypro
 def ref(t):
     if isvar(t):
         newt = l + t
         vs.add(newt)
         return newt
     elif not istuple(t):
         return t
     else:
         return tuple(map(ref, t))
示例#2
0
文件: natlog12.py 项目: ptarau/pypro
 def relocate(t):
       if isvar(t):
         newt = vtop + t
         if newt >= len(vs):
           extendTo(newt, vs)
         return newt
       elif not istuple(t):
         return t
       else:
         return tuple(map(relocate, t))