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
See Access outer class from inner class in python (https://stackoverflow.com/a/35118717/3787376) for a simple reliable answer I made that only uses variables, attributes, functions and classes - no special code.