Boost logo

Boost :

From: l.dunn_at_[hidden]
Date: 2001-03-16 19:35:23


Hi David,

        Perhaps the best way might be to modifify Python. Surely this is a
problem with Zope too.

Lorien.

--- In boost_at_y..., "David Abrahams" <abrahams_at_m...> wrote:
> Lorien,
>
> I'm confused. I thought I killed this problem long ago. Looking at
the error
> message, though, there may not be any good way to kill it. Let me
give it
> some thought.
>
> -Dave
>
> ----- Original Message -----
> From: <l.dunn_at_u...>
> To: <boost_at_y...>
> Sent: Thursday, March 15, 2001 10:17 PM
> Subject: [boost] Re: BPL: inheritance problem
>
>
> >
> > > However I'm getting python TypeErrors when I use code like this:
> > >
> > > class MyPyClass(MyBasePyClass, MyBaseCPPClass):
> > > def __init__(self):
> > > MyBasePyClass.__init__(self)
> > > MyBaseCPPClass.__init__(self)
> > >
> > > The problem occurs with MyBasePyClass; Python says "unbound
> > > method must be called with class instance 1st argument"
> > >
> > > This makes sense to me- I'm passing a meta-class instead of a
> > > normal class. However I don't know how to work around it.
> > >


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk