I\'ve seen a few \"solutions\" to this, but the solution every time seems to be \"Don\'t use nested classes, define the classes outside and then use them normally\". I don\'
You can access the parent class through its name:
class ChildClass: name = None def __init__(self, stream): idx = stream.read_ui16() self.name = ParentClass.constant_pool[idx]
Then again, I'm not sure I understand what you are trying to achieve.