Calling functions

Tommy Grav tgrav at mac.com
Thu Oct 19 12:32:44 EDT 2006


I have a small program that goes something like this

def funcA() : pass
def funcB() : pass
def funcC() : pass

def determine(f):
	t = f()
	return t

What I would like to do is be able to

n = determine(funcA)
m = determine(funcB)

But I can't really figure out how to do this (I think it is
possible :)

Cheers
Tommy


tgrav at mac.com
http://homepage.mac.com/tgrav/

"Any intelligent fool can make things bigger,
more complex, and more violent. It takes a
touch of genius -- and a lot of courage --
to move in the opposite direction"
                          -- Albert Einstein


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20061019/763e32ec/attachment.html>


More information about the Python-list mailing list