Introduce Descriptor.prototypeDepth

This commit is contained in:
Anthony Ramine 2016-01-06 00:48:22 +01:00
parent 7693aecf15
commit d52948dfd5
2 changed files with 3 additions and 2 deletions

View file

@ -296,6 +296,7 @@ class Descriptor(DescriptorProvider):
while parent:
self.prototypeChain.insert(0, parent.identifier.name)
parent = parent.parent
self.prototypeDepth = len(self.prototypeChain) - 1
config.maxProtoChainLength = max(config.maxProtoChainLength,
len(self.prototypeChain))