X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fstdapi.py;h=60e287dadc1cfa816f1c49504be43769f4a95980;hb=143e92584550e5c61f61c8e6d2a2d2070e5a98c8;hp=67b9baabf78fddad140d170c57fa4030361365c2;hpb=bcb26b220e51175b67d524d26d735865ef6cedb4;p=apitrace diff --git a/specs/stdapi.py b/specs/stdapi.py index 67b9baa..60e287d 100644 --- a/specs/stdapi.py +++ b/specs/stdapi.py @@ -409,6 +409,13 @@ class Interface(Type): yield method raise StopIteration + def iterBases(self): + iface = self + while iface is not None: + yield iface + iface = iface.base + raise StopIteration + def iterBaseMethods(self): if self.base is not None: for iface, method in self.base.iterBaseMethods():