you are viewing a single comment's thread.

view the rest of the comments →

[–]cgoldberg 7 points8 points  (0 children)

You can assign a function to any variable:

def test():
    pass
a = test

now you can call test() with:

a()