foo isn't a function, it's a bool. But in any case, as you can see the answer is "with terrible hacks". Python is not a functional language. It is imperative.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: