Re: Dynamically Changing the Base Class

2008-07-08 Thread Adam C.
On Jul 7, 10:44 pm, Michele Simionato <[EMAIL PROTECTED]> wrote: > On Jul 7, 8:08 pm, "Adam C." <[EMAIL PROTECTED]> wrote: > > > Thanks. I think we would want new-style classes, and 6-year-old > > patches strike me as maybe a little out of the desired path... so this > > really just doesn't work in

Re: Dynamically Changing the Base Class

2008-07-08 Thread Adam C.
On Jul 7, 4:04 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On Jul 7, 9:31 am, "Adam C." <[EMAIL PROTECTED]> wrote: > > > > > We have a situation where we want a Swig-generated Python class to > > have a different base (not object). It doesn't appear that we can > > coerce Swig into generating the c

Re: Dynamically Changing the Base Class

2008-07-07 Thread Michele Simionato
On Jul 7, 8:08 pm, "Adam C." <[EMAIL PROTECTED]> wrote: > Thanks. I think we would want new-style classes, and 6-year-old > patches strike me as maybe a little out of the desired path... so this > really just doesn't work in modern Python? Can you use (multiple) inheritance instead of changing the

Re: Dynamically Changing the Base Class

2008-07-07 Thread Carl Banks
On Jul 7, 9:31 am, "Adam C." <[EMAIL PROTECTED]> wrote: > We have a situation where we want a Swig-generated Python class to > have a different base (not object). It doesn't appear that we can > coerce Swig into generating the class we want at present (but we are > still enquiring). > > Is it possi

Re: Dynamically Changing the Base Class

2008-07-07 Thread Adam C.
On Jul 7, 9:11 am, George Sakkis <[EMAIL PROTECTED]> wrote: > On Jul 7, 9:31 am, "Adam C." <[EMAIL PROTECTED]> wrote: > > > > > We have a situation where we want a Swig-generated Python class to > > have a different base (not object). It doesn't appear that we can > > coerce Swig into generating th

Re: Dynamically Changing the Base Class

2008-07-07 Thread George Sakkis
On Jul 7, 9:31 am, "Adam C." <[EMAIL PROTECTED]> wrote: > We have a situation where we want a Swig-generated Python class to > have a different base (not object). It doesn't appear that we can > coerce Swig into generating the class we want at present (but we are > still enquiring). > > Is it possi