#!/usr/bin/python3 # Copyright (C) 2014 Steve Litt, Expat license, http://directory.fsf.org/wiki/License:Expat import copy class Person: def __init__(self, fname, lname): self.fname = fname self.lname = lname def showname(self): print('{} {}'.format( self.fname, self.lname)) a = Person('Steve', 'Litt') b = a c = copy.deepcopy(a) d = a a.showname() b.showname() c.showname() d.showname() b.fname = 'Rena' print('\n======\n') a.showname() b.showname() c.showname() d.showname()