[docs] [issue11789] Extend upon metaclass/type class documentation, here: zope.interface and usage of instances of classes as base classes
Georg Brandl
report at bugs.python.org
Thu Apr 7 11:50:47 CEST 2011
Georg Brandl <georg at 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 <report at bugs.python.org>
<http://bugs.python.org/issue11789>
_______________________________________
More information about the docs
mailing list