[qmtest] [PATCH] fix "save expectation" command

Mark Mitchell mark at codesourcery.com
Wed Jul 16 05:39:21 UTC 2003


On Tue, 2003-07-15 at 21:55, Vladimir Prus wrote:
> Mark Mitchell wrote:
> > On Mon, 2003-07-14 at 22:33, Vladimir Prus wrote:
> > > The command is broken because since 2003-05-09 the Result.__init__ method
> > > does not have "context" parameter, while
> > > QMTestSever.HandleSaveExpectations tries to pass it.
> >
> > I applied this patch.
> 
> BTW, could you tell why QMTest uses:
> 
>     super(TemporaryAttachmentStore, self).__init__(path)
> 
> instead of 
> 
>     FileAttachmentStore.__init__(self, path)

This is a new feature in Python that, as you say, avoids having to
explicitly name the super class.  It would be even nicer if you could
just say "super(self).__init__(path)", but you can't, and there are some
technical reasons for that.

It also makes the call look more like an ordinary method call; it's more
like self.foo(x), rather than Class.foo(self, x).

Yours, 

-- 
Mark Mitchell <mark at codesourcery.com>
CodeSourcery, LLC




More information about the qmtest mailing list