#Python Is there a pythonic way to call a function multiple times without `for` and while maintaining type checking support? Currently i'm doing this: ``` plugins = [One(), Two()] def action_one(): for p in plugins: p.action_one() def action_two(): for p in plugins: p.action_two() ``` Maybe there is better way?
@d908aab1 What's not pythonic about a for loop? I'd put the actions on a separate line from the loop header as is recommended by PEP-8, but often the "stupid, simple" solution is the best. Any metaprogramming shenanigans would make this less readable with no tangible benefit.