Suppose I have a class setup like this:
How can I make this work, preferably in one file?
Code:
class Foo:
Bar b
class Bar:
Foo f
class Foo:
Bar b
class Bar:
Foo f
class Foo(): def __init__(self): b = Bar() b.hello() class Bar(): def hello(self): print "hello" f = Foo()
class Foo(): def __init__(self): b = Bar() b.hello() class Bar(): def hello(self): print "hello" f = Foo()
Comment