Do you mean something like this ...
# a function can return a function
def func1 () :
def func2 () :
print "Blaaaa"
def func3 () :
print "Yaaaaa"
return func2, func3
func2, func3 = func1()
func2()
func3()
print func2 # test, what is it?
print func3
Please put your code in code tags
[ code]your code here[/code]
Removed the space between [ and c for this to work!
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417