Consider the following Python (runs in 2.x or 3.x):
class Outer(object): pass class Inner(object): def __init__(self): print(\"Inner.self\", s
You should redesign your code not to use inner classes and to explicitly pass the instance of Outer to Inner when you make it, or not to require it.