Wednesday, 7 August 2013

how to return a function in a different class in python 3.3

how to return a function in a different class in python 3.3

I know this is a really bad description but how can i get this to work:
class Test1():
def test_p1():
print("This is part 1 of Test1")
def Test2():
return test_p1()
Thanks in advance!

No comments:

Post a Comment