from module import a, b, c
foo(a)
foo(b)
foo(c)
Is there a way to avoid having to call foo(x)for each imported object?
Some context: a, b, c are webpage classes and foo is a route() function that creates a route for each webpage.
Update: There will be a growing list of imported classes in the main module as the application grows. I mentioned a, b, and c simply as an example. I am looking for something like import a, b, c to classes_list and then I can iterate over the classes_list instead of calling foo on each of the imported classes.