Hello Gang, I am asking that one of you can point me into the correct direction. I have a python module which has two objects with many methods and attributes in each. The two hypothetical objects are "house" and "tree". E.g. Used like below: import my_mod h = my_mod.house() t = my_mod.tree()
They also contain attributes like: h.color t.height
I would like to pass the t object to a house.attach() method e.g. h.attach(t) and modify the attributes of t within the house object methods. What is the best practice to reference separate objects in a module which are passed in at the interpreter? Any thoughts are appreciated as keywords and ideas are easy to Google.
Thank you, Robert.