ExtensionClasses and class compatibility

Balazs Scheidler bazsi at balabit.hu
Sun May 13 05:43:03 EDT 2001


On Sun, May 13, 2001 at 11:14:41AM +0400, Oleg Broytmann wrote:
> On Sat, 12 May 2001, Balazs Scheidler wrote:
> > 		Base.config(self)
> >
> > It does work if everything is a normal Python object. If `Base' is an
> > ExtensionClass it fails with an exception stating that A.config(self) must
> > be called with instance as first parameter. I'm using Python 2.1 (first I
> 
>    This should be something like Base.inheritedAttribute("config")(self)

Hm... I couldn't find anything like inheritedAttribute, though I also digged
the interpreter source (class objects, instance objects and builtin
functions)

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1




More information about the Python-list mailing list