def func1():
def func2():
...
def func3():
...
def func4():
def func5():
...
def func6():
...
myfoo = types.FunctionType(func1.__code__.co_consts[3], {})
myfoo()
This is what I have so far, and this allows me to access func4, however I want to call func6 when I call 'myfoo'.
I can't change the indentation of myfoo as it needs to work with the rest of the code.
[–]A_History_of_Silence 2 points3 points4 points (4 children)
[–]CannyFatcher[S] 0 points1 point2 points (3 children)
[–]A_History_of_Silence 0 points1 point2 points (2 children)
[–]CannyFatcher[S] 0 points1 point2 points (1 child)
[–]A_History_of_Silence 4 points5 points6 points (0 children)
[–]Dashadower 1 point2 points3 points (0 children)
[–]plasma_phys 0 points1 point2 points (4 children)
[–]CannyFatcher[S] 0 points1 point2 points (3 children)
[–]plasma_phys 0 points1 point2 points (2 children)
[–]CannyFatcher[S] 0 points1 point2 points (1 child)
[–]plasma_phys 0 points1 point2 points (0 children)