Alex,
If I understood your question correctly, what you're looking for is
called a closure. For the example you gave, the shortest way would be
to use the lambda keyword:
d = {'one': lambda: f(1,2),
'two': lambda: f(3,4)}
However, I generally recommend defining named functions instead of
using lambda, as they are easier to read and debug:
def one():
return f(1,2)
def two():
return f(3,4)
d = {'one': one, 'two': two}
-Josh