bigelectron
05-25-2011, 07:09 AM
Hey guys,
As you can probably tell from some of the stuff I've released, python isn't my main language. I have a question regarding scopes and overriding classes at runtime.
For example, lets say the eve target service. I override the OnTarget event with my OnTarget method(whatever.OnTarget = MethodType(what,ever,etc)). Now my question is when the OnTarget event fires and execution ends up on my OnTarget method, using "self" what is self in that context, is it still the targetSvc instance, is it an instance of the main thread, is it an instance of the event handler?
Let me know if that question makes any sense and if you know the answer thats even better!
As you can probably tell from some of the stuff I've released, python isn't my main language. I have a question regarding scopes and overriding classes at runtime.
For example, lets say the eve target service. I override the OnTarget event with my OnTarget method(whatever.OnTarget = MethodType(what,ever,etc)). Now my question is when the OnTarget event fires and execution ends up on my OnTarget method, using "self" what is self in that context, is it still the targetSvc instance, is it an instance of the main thread, is it an instance of the event handler?
Let me know if that question makes any sense and if you know the answer thats even better!