8 Jan
2014
8 Jan
'14
10:43 p.m.
a boost python wrapper's __metaclass__ is its __class__, depending how it is constructed. I still couldn't work out from that how to proceed though,
Yes, indeed, I forgot about that. So here is the solution then, but I still recommend to forget about it. import abc from scitbx.lstbx import normal_eqns class Refinery(object): class __metaclass__(normal_eqns.non_linear_ls.__class__, abc.ABCMeta): pass class AdaptLstbx(Refinery, normal_eqns.non_linear_ls): pass Best wishes, Luc