Mixin class error
Ed Leafe
ed at leafe.com
Mon Mar 6 20:28:18 EST 2006
On Mar 6, 2006, at 8:08 PM, Kent Johnson wrote:
> I have no clue but googling 'type is not an acceptable base type'
> finds
> this thread
> http://groups.google.com/group/comp.lang.python/browse_thread/
> thread/628b8ad34a36db17/579f716b143f4967%23579f716b143f4967?
> sa=X&oi=groupsr&start=0&num=3
I spent about an hour Googling and never found that thread!
> So it looks like kinterbasdb.Cursor is a C extension class that may
> not
> be subclassed because Py_TPFLAGS_BASETYPE is not set. Whether this
> is by
> design or accident would be a question for the kinterbasdb developers.
OK, I'll ask them.
> One workaround might be to use delegation instead of subclassing...
Yeah, but that would involve a lot more work at this point. The
mixin approach has been working quite well up until this problem.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
More information about the Python-list
mailing list