
charolastra
charolastra@programming.dev
Joined
0 posts • 4 comments
Keyword “typically”. If I’m overriding dunder methods, then I’ll typically need to call the super method as well. It’s not like it’s forbidden.
Consider the following:
class MyStr(str):
def len(self):
return len(self)
# OR
return self.__len__()
Both of the above return values are perfectly valid Python.
Check out Tauri.app