Hi everyone this is probably something extremely simple that i'm overlooking but can someone point me in the right direction for how to handle this problem.
def nodeFunction(self,*args):
return self[1] + self[2]
Basically what I am trying to do is grab the data passed in through the arguments. I am just stuck on the syntax for referencing the arguments inside the function when using *args.
selfonly because that is the first argument to the method -- there's no magicthis. A setter for a property refers to the value it is setting as an argument -- there's no magicvalue. If you want to use a function inside a modulefoo, you have to importfooso that the interpreter knows what it is. Etc.)