So my understanding is that methods like _privateMethod()
shouldn't be usually accessed/called directly. However, due to what I need to implement, I need to override my inherited PrivateMethodClass
, as:
class MyClass(PrivateMethodClass):
def _privateMethod():
#add additional functionality
I must extend the capabilities of this method, but my question is, is this is bad practice and if so, there any way to do this cleaner/more pythonic/better?