[Tutor] introspection

Danny Yoo dyoo at hashcollision.org
Tue Apr 21 07:21:44 CEST 2015


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"?


More information about the Tutor mailing list