From: Jon S. <js...@gm...> - 2008-04-06 22:45:26
|
Hi, With python its often easier to just test than to find documentation. Regards, def regularCase(arg): return arg def upCase(arg): return arg.upper() def do(func, arg): return(func(arg)) print do(regularCase, 'hello') print do(upCase, 'hello') ..... hello HELLO On 4/6/08 5:16 PM, "Joe Heafner" <hea...@gm...> wrote: > Can a function be passed as a parameter to another function in Python? I can't > find any clear examples. > > Joe > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users Jon Schull ji...@it... cell: 585-738-6696 Associate Professor Rochester Institute of Technology |