def close(self,closureType,debug=0): closedEnv = self.copy() CLOS = Closure(closedEnv,closureType) if debug: CLOS.debugOn() CLOS.computeClosure() closedEnv.isConsistent = CLOS.isConsistent return closedEnv