why the super class can access the subclass's attribute

2010-01-20 Thread yousay
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

Re: BaseHTTPServer get_request not called till first request

2010-01-16 Thread yousay
On Jan 13, 1:38 am, Adam Tauno Williams wrote: > Looking at and > as examples I've attempted > to create a BaseHTTPServer class that times-out accept() ever X seconds > to check some other work.  This seems

Re: tarfiles usage on python 2.4.4

2009-12-20 Thread yousay
On Dec 19, 9:27 am, tekion wrote: > All, > I am using tarfile module and my python is version 2.4.4.  When I call > method extractall, I am getting error method does not exist. Could > someone confirm if the method exist on python 2.4.4? Thanks dir(tarfile) check if is exist -- http://mail.pytho