示例#1
0
文件: cons.py 项目: zhihuizhiming/hy
    def replace(self, other):
        if self.car is not None:
            replace_hy_obj(self.car, other)
        if self.cdr is not None:
            replace_hy_obj(self.cdr, other)

        HyObject.replace(self, other)
示例#2
0
文件: cons.py 项目: Foxboron/hy
    def replace(self, other):
        if self.car is not None:
            self.car.replace(other)
        if self.cdr is not None:
            self.cdr.replace(other)

        HyObject.replace(self, other)
示例#3
0
    def replace(self, other):
        if self.car is not None:
            self.car.replace(other)
        if self.cdr is not None:
            self.cdr.replace(other)

        HyObject.replace(self, other)
示例#4
0
    def replace(self, other):
        for x in self:
            replace_hy_obj(x, other)

        HyObject.replace(self, other)
        return self
示例#5
0
文件: list.py 项目: Foxboron/hy
    def replace(self, other):
        for x in self:
            x.replace(other)

        HyObject.replace(self, other)
        return self
示例#6
0
文件: dict.py 项目: eigenhombre/hy
    def replace(self, other):
        for x in self:
            self[x].replace(other)
            x.replace(other)

        HyObject.replace(self, other)
示例#7
0
文件: dict.py 项目: cbbrowne/hy
    def replace(self, other):
        for x in self:
            self[x].replace(other)
            x.replace(other)

        HyObject.replace(self, other)
示例#8
0
文件: list.py 项目: yati-sagade/hy
    def replace(self, other):
        for x in self:
            x.replace(other)

        HyObject.replace(self, other)
        return self