<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt"><div>Given that twisted tutorials and other written materials show examples of derived classes for Protocol, HTTP Request etc., is there a good reason for many classes (almost all I suspect) (e.g. 'class Request' , 'class BaseProtocol', 'class _PauseableMixin', etc.) to be old style classes as opposed to a new style python classes?</div><div><br></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;">Given that newer versions of twisted (and user apps) run on newer versions of python, I initially (a few years ago) tried to call the base class using super(), but was surprised to find twisted implements using old style classes.<br></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></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;">New style classes make it easy to call a base class method (by using super). Would the MRO in new style classes make it better or worse? However, nothing wrong with old style classes, esp. if twisted depends on the depth-first MRO of old style classes.</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></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;">Can someone clarify whether use of old style classes is intentional (e.g. due to MRO)?<br></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></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;">Thanks,<br></div><div> Arun</div><div><br></div></div></body></html>