On 04/21/2015 01:21 AM, Danny Yoo wrote:
What's supposed to happen in this situation?


##########################################
class Person(object):
     def __init__(self): pass

j = Person()
john = j
jack = j
##########################################

What single name should we get back from the single Person object
here?  "j", "john", or "jack"?


And what name should you get from the second Person() object created here?

mylist = [Person(), Person(), Person()]




--
DaveA
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to