(no title)
alfons_foobar | 5 months ago
class Foo:
def __init__(self, bar):
self.bar = bar
class Bar:
def __init__(self, foo):
self.foo = foo
Obviously both called into each other to do $THINGS... Pure madness.So my suggestion: Try not to have interdependent classes :D
_flux|5 months ago
alfons_foobar|5 months ago
Maybe I am just a bit burned by this particular example I ran into (where this pattern should IMO not have been used).