python: inheritance not working as expected. Problem with my code?
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): |
Is it frames that isn't found, or is it __frames or __updateFrames?
Kevin Barry |
Oops... forgot to update this thread.
It was "frames" that wasn't found - the property, not "__frames" the variable. The problem had something to do with a coding error that wasn't caught by the interpreter. Unfortunately, I can't say exactly what it was, but I was in the middle of a rather large edit when this started coming up. After checking over the property time & time again, I pushed through to finish the edit, checked again & it was working as expected. |
Does it work without the property decorator? Python's property inheritance is one of the things that works funny.
|
All times are GMT -5. The time now is 09:29 PM. |