con=MySQLdb.connect(host='localhost', user='test', passwd='xx', db='yy') curs = con.cursor(MySQLdb.cursors.CursorUseResultMixIn) File "C:Python26libsite-packagesMySQLdbconnections.py", line 226, in cursor return (cursorclass or self.cursorclass)(self) TypeError: object.__new__() takes no parameters class SSCursor(CursorUseResultMixIn, CursorTupleRowsMixIn, BaseCursor): """This is a Cursor class that returns rows as tuples and stores the result set in the server.""" import MySQLdb.cursors as cursors con = MySQLdb.connect(host = 'localhost', user = 'test', passwd = 'xx', db = 'yy', cursorclass = cursors.SSCursor)