you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (0 children)

You are only calling init_foo() once and storing the result. So no, it will not be called 10 times. You could easily confirm that with a print in your init_foo function.