I’m working on my first Python project, and I’m already missing events in my classes. Perhaps it’s not even called events in Python, but I would like to create “groups” in my classes to which function references can be added. At some point in my class all function references in my group would execute.
Is this built into Python? (I’m using 2.7 at the moment)
Python doesn’t have any sort of event system built-in, but it’s could be implemented pretty simply. For example: