What I would like to do is access the inherited methods using a certain namespace, for example:
class ExtraMeths(object):
def specialmeth():
pass
class MainClass(ExtraMeths):
def standardmeth():
pass
myclass = MainClass()
myclass.standardmeth() #works
myclass.specialmeth() #also works, but not ideal
Now ideally what I would like to do is run myclass.ExtraMeths.specialmeth()
where the name ExtraMeths
is not important, but it is in its own 'property' of the main class. Also important that the inherited class is inherited, i.e. the same self
variables are available to it.
The reason is that there are a lot of methods and I would like to bring some order to them, so grouping similar ones together seems to make sense.