View Single Post
Old 10-08-2022, 01:21 PM   #22
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,198
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by chaley View Post
I have wondered about that and haven't been able to find a use case that class instances (e.g., self.my_data) doesn't cover. Do you have one in mind, taking into consideration of the lifetime of of globals and the class instance? Is there something in action chains that would use it?

If you need it, adding it would trivial as a third argument.
For example, I do pass event arguments to all the chains invoked by the event using the globals dict (event_args variable). How would I be able to do this self.my_data?

While at it, is there a way to pass the chain instance itself?
capink is offline   Reply With Quote