[capi-sig] A little push into the right direction

Robert Steckroth robertsteckroth at gmail.com
Sun Oct 28 17:24:12 CET 2012


Alright, disregard this message. This appears to be easy enough with
the use structs.
Simply posted this in haste, sorry.

On Sun, Oct 28, 2012 at 10:52 AM, Robert Steckroth
<robertsteckroth at gmail.com> wrote:
> 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.
>
>
>
>
>
> --
> Bust0ut, Surgemcgee: Systems Engineer ---
> surgemcgee.com
> Django_Teamplate3d



-- 
Bust0ut, Surgemcgee: Systems Engineer ---
surgemcgee.com
Django_Teamplate3d


More information about the capi-sig mailing list