Wizard
Wizard

Reputation: 22153

Django use `super(child,self)`instead of `super()` in latest version

In Django 1.11 tutorial and documentation,there's codes style as super(child,self) everywhere. for instance:

return super(ContactView, self).form_valid(form)

What's the advantage of it? to reminder you in the current class for memory?

Upvotes: 2

Views: 72

Answers (1)

user8445949
user8445949

Reputation:

In order to compatible with projects running python2.

Upvotes: 1

Related Questions