On 04/05/10 04:11, Shurui Liu (Aaron Liu) wrote: > But the result I got from computer is like this: > A new critter has been born! > A new critter has been born! > > Hi. I'm an instance of class Critter. > > Hi. I'm an instance of class Critter.
Because you tell it to do it in that order: crit1 = Critter() # A new critter has been born crit2 = Critter() # A new critter has been born crit1.talk() # Hi. I'm an instance of class Critter. crit2.talk() # Hi. I'm an instance of class Critter. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor