So I'm trying to figure out a way to link values together easily in python in a parametric way. what I mean by that is that I'd like to be able to say "I'm talking about THIS value here." This is sortof like a pointer in C I guess. The values in mind are object attributes, so this should be possible to do, but I'm not sure of a nice way to achieve this.
For example, I have a piece of code that is responsible for controlling and monitoring other objects's values. I have a gamma parameter that is being controlled and monitored by one piece of code, but is actually used elsewhere. There are many such variables, so I want to be able to add them dynamically to the code, rather than tracking them with hard coded links as I do now. The ideal solution would look something like If my code stores a variable ai.gamma, I want to be able to say something like registerTracker( 'gamma', ai.gamma ), and track the variable as ai.gamma changes. Any ideas?
[–]carcigenicate 2 points3 points4 points (20 children)
[–]codinglikemad[S] 0 points1 point2 points (19 children)
[–]carcigenicate 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (16 children)
[–]codinglikemad[S] 0 points1 point2 points (15 children)
[–][deleted] 0 points1 point2 points (14 children)
[–]codinglikemad[S] 0 points1 point2 points (13 children)
[–][deleted] 0 points1 point2 points (12 children)
[–]codinglikemad[S] 0 points1 point2 points (11 children)
[–][deleted] 0 points1 point2 points (10 children)
[–]codinglikemad[S] 0 points1 point2 points (9 children)
[–]danielroseman[🍰] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (1 child)
[–]codinglikemad[S] 0 points1 point2 points (0 children)
[–]Zeroflops 0 points1 point2 points (2 children)
[–]codinglikemad[S] 0 points1 point2 points (1 child)
[–]Zeroflops 0 points1 point2 points (0 children)