[Tutor] Get instance name from inside the class ???

pan@uchicago.edu pan@uchicago.edu
Thu May 1 21:38:02 2003


Here's another ? for u guys:

class aclass:
   def __init__(self):
      self.val = 'avalue'

aaa = aclass()
bbb = aclass()

Is it possible to put some code inside the aclass to determine
is it 'aaa' or 'bbb' that this class is bound to ??? 

pan