You think too much about it. Jokes aside. Python is not C ++; your problems are not problems in Python. Just write what makes sense in your area of ββconcern.
"Not really good due to circular links."
Why not? Circularity is irrelevant here. Bidirectional relationships are great things. Use them. The garbage Python collects them just fine, without even thinking about its part.
What is the possible problem you have with a mutual (bi-directional) relationship?
"... only work with accounts and inside them with internal handler statements. This is a bit limiting, because in this case I canβt pass links to statements."
What? Your operators, Python objects, pass everything you need. All Python objects are (in fact) links, not sweating.
What is your problem with manipulating Operator objects?
source share