I have a program that runs on two platforms. Each platform has a different set of imported modules. Many of the def statements on one platform need an additional parameter to run with its set of imports. Not every def statement needs to be changed.
If something like this worked, it would be make things easier:
if platform_1:
def func(this, that):
else:
def func(self, this, that):
func_body
Is there any way do do this?