Basically I have the problem of circular dependencies and I can not change to class structure of the code I am working with ( Please don't suggest to change the class structure).
Now I could put all my code into one giant file, but that does not seem practical.
So is it possible that all my classes live in the same namespace, so that this would be possible:
File a.py:
from b import B
class A:
def foo(self):
B().bar()
def bar(self):
print("Hello, this is A")
File b.py:
from a import A
class B:
def foo(self):
A().bar()
def bar(self):
print("Hello, this is B.")
Without python exploding in on itself.