|
From: Samuele P. <pe...@in...> - 2001-07-15 19:13:50
|
Hi.
> Here's a version of your patch that works with my minimal ExtensionClass
> emulation:
>
[snip patch]
> It's the same as yours, except that it goes before the PyClass check, so
> that an object that "extends PyClass implements PyMetaClass" will be
> treated as a metaclass.
I'm fine with your version, but I don't really see what was the problem with
mine,
maybe the posted stuff was not readable but code logic was:
if (!(bases[i] instanceof PyClass)) {
// old logic
} else /* so bases[i] is/derives from PyClass */ if (bases[i] instanceof
org.python.util.PyMetaClass) {
// meta-class logic
}
so the new code is triggered by subclasses of PyClass implementing PyMetaClass
...
I should be very tired ...
Samuele Pedroni.
|