I have sees aprogram like this ,i confusing why super class can access
the subclass's attribute
,this is the program,thanks in advance:
class MyThread(threading.Thread):
    def join(self):
        super(MyThread,self).join()
        return self.result

class Worker(MyThread):
    import random
    import pdb
    pdb.set_trace()
    def run(self):
        total = 0
        for i in range(random.randrange(10,100)):
            total +=i
        self.result = total


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to