I'm writing a layer that goes on top of a 3rd party module. My class inherits from a class in the 3rd party module. That moule [eventually] inherits from dict. The layout looks like:
Code:
class 3rdPartyParent(dict):
...
class 3rdPartyObject(3rdPartyParent):
...
class MyClass(3rdPartyObject):
...
@property
def frames(self):
if not self.__frames:
self.__updateFrames()
return self.__frames
...
However, when I try to use my defined "frames" property (by my_instance = MyClass(); my_instance.frames), I'm getting a result from the 3rdPartyParent's __getattr__ (which happens to raise an error that the requested attribute doesn't exist). Not quite sure why that would be. I expect that it would execute my code, but it doesn't. Any ideas?