class C1(): def setname(self, who): self.name = who I1 = C1( ) I2 = C1( ) I1.setname('A') I2.setname('B') print I1.name