Georg Brandl <ge...@python.org> added the comment:

This doesn't work as you show.  What you probably meant was something like this:

class InterfaceBase(type):
    ...

Interface = InterfaceBase('Interface', (), {})

class IFoo(Interface):
    ...


which you can just as well do by using normal metaclass syntax.

----------
nosy: +georg.brandl

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11789>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to