Re: SocketServer.BaseRequestHandler and __init__/super()

2012-05-17 Thread Chris Angelico
On Fri, May 18, 2012 at 10:32 AM, Tim Chase wrote: > Any thoughts on this? (other than "SocketServer should > have inherited from object which is a 2.x best-practice") Well, Python 3 dodges the issue by making all classes inherit from object. That might be a solution :) ChrisA -- http://mail.py

SocketServer.BaseRequestHandler and __init__/super()

2012-05-17 Thread Tim Chase
Sparring with a little sandbox/test code (in 2.6, FWIW), I'm trying to set up some instance variables in my __init__ but keep hitting my head against the wall. Initially, I had something of the form class MyServer(SocketServer.BaseRequestHandler): def __init__(self, *args, **kwargs):