<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt"><div>Should http.py :: HTTPChannel.__first_line be an instance attribute instead of a class attribute?</div><div><br>I have a custom scenario where I sub-classed HTTPChannel for my sub-classed HTTPFactory.&nbsp; In the DerivedHTTPChannel class I overrode the allContentReceived() method.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: bookman old style,new york,times,serif; background-color: transparent; font-style: normal;"><br>I recently enabled persistent connections, but setting self.__first_line = 1 in the DerivedHTTPChannel was ineffective, and the first line of the next request threw an exception when it got parsed as an http header.&nbsp; Similar question "probably" apply to other class attributes.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: bookman old style,new
 york,times,serif; background-color: transparent; font-style: normal;"><br>Should such attributes be instance attributes instead of class attributes? Or is it anticipated that any class who derives from HTTPChannel should override almost all the methods of the base class?</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: bookman old style,new york,times,serif; background-color: transparent; font-style: normal;"><br>Thanks,<br>Arun</div></div></body></html>