【发布时间】:2012-05-30 19:24:55
【问题描述】:
例子:
>>> from zope.interface import Interface, Attribute
>>> class IA(Interface):
... foo = Attribute("foo")
...
>>> IA.names()
['foo']
>>> class IB(IA):
... bar = Attribute("bar")
...
>>> IB.names()
['bar']
如何让 IB.names() 也返回 IA 中定义的属性?
【问题讨论】:
标签: python zope.interface