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!
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
Offline 5,792 posts
since Oct 2004