[New-bugs-announce] [issue9140] SocketServer.BaseRequestHandler not a new-style class?

Peter Froehlich report at bugs.python.org
Fri Jul 2 06:53:42 CEST 2010

New submission from Peter Froehlich <peter.hans.froehlich at gmail.com>:

I tried to do this:

class Handler(SimpleHTTPRequestHandler):
  def do_GET(self):
    super(Handler, self).do_GET()
    print self.path

However super fails:

TypeError: super() argument 1 must be type, not classobj

Looking up the chain of base classes, I found that SocketServer.BaseRequestHandler is defined as follows:

class BaseRequestHandler:

No "(object)" there to make it a new-style class. I think that's wrong? BTW, in the 3.1 library it's defined the same way, but I'd assume that all classes are "new-style" in 3.1?

components: Library (Lib)
messages: 109089
nosy: phf
priority: normal
severity: normal
status: open
title: SocketServer.BaseRequestHandler not a new-style class?
type: behavior
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list