Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
Arquivo: cons.py Projeto: 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)
Exemplo n.º 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)
Exemplo n.º 4
0
    def replace(self, other):
        for x in self:
            replace_hy_obj(x, other)

        HyObject.replace(self, other)
        return self
Exemplo n.º 5
0
Arquivo: list.py Projeto: Foxboron/hy
    def replace(self, other):
        for x in self:
            x.replace(other)

        HyObject.replace(self, other)
        return self
Exemplo n.º 6
0
    def replace(self, other):
        for x in self:
            self[x].replace(other)
            x.replace(other)

        HyObject.replace(self, other)
Exemplo n.º 7
0
Arquivo: dict.py Projeto: cbbrowne/hy
    def replace(self, other):
        for x in self:
            self[x].replace(other)
            x.replace(other)

        HyObject.replace(self, other)
Exemplo n.º 8
0
    def replace(self, other):
        for x in self:
            x.replace(other)

        HyObject.replace(self, other)
        return self