[Interface-dev] About internal impelementation of zope.interface

Deniz Kurucu makkalot at gmail.com
Thu Nov 10 14:03:25 UTC 2011


Hi i'm trying to understand internal implementation of zope.interface. As
far as i understand 'implements' method patches the current class and
assigns to its __metaclass__ a method which is called when interpreter
encounters the class. After that it removes that fake metaclass and
restores its defaults. What i can not understand is what is the purpose of
method determineMetaclass in advice.py why just not get the first metaclass
in __bases__[0] ? Thanks in advance ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/interface-dev/attachments/20111110/eebaf1e5/attachment.html 


More information about the Interface-dev mailing list