I was working with inheritance in WTForms
.
I had next class:
class MyForm(WTForms):
...
def process(self, formdata=formdata, obj=None):
super(self.__class__, self).process(formdata=formdata, obj=obj)
And I had error (not always, but in some cases with similar forms - it is even more strange):
Maximum recursion depth have been exceeded
But when I've changed self.__class__
→ MyForm
everything was OK!
I don't get it... As I know they must be synonyms. What's wrong?