Python – reference inner class from other inner class
This is not possible, since everything you define in a class becomes a valid member only in an instance of that class, unless you define a method with @staticmethod, but there is no such property for a class. So, this won’t work either: class Foo(object): x = 10 class A(object): pass class B(object): other = … Read more