The following code successfully prints OK:
OK
class B(object): def __init__(self): super(B, self).__init__() print
B is available in the scope of A class - use A.B:
B
A
A.B
class A(object): def __init__(self): self.B() class B(object): def __init__(self): super(A.B, self).__init__() print 'OK' A()
See documentation on Python Scopes and Namespaces.