I have a class with many functions. Of these many functions, there's one which is pretty long and significant, and for readability purposes I'd like to have it on a separate py file. I would like on this separate file to keep using self.attribute notation.
For example, file1:
class something:
def __init__(self):
self.a=1
def fun(self):
run file2
file2:
def fun_in_file2(self):
self.a=3
Thanks for any help.