On 2016-10-10 17:31, Simon King wrote:
I just tested that in the current Sage development version my
proof-of-concept would still work.

But still Python 2, right?

And looking at
_PyType_CalculateMetaclass, I don't see why it wouldn't work in Python3.

Maybe I'm misunderstanding you, but what I wanted to say is: Python 3 doesn't have any place to hook a custom metaclass. In Python 3, with

class X(B1, ..., Bn)

the metaclass of X must be one of the metaclasses of the Bi, there is no way to override it (except of course when you explicitly specify the metaclass). Of course, I can always be wrong...

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to