Message366884
Right now it contains the following example:
class Derived(Base):
def meth(self):
super(Derived, self).meth()
`super()` without arguments is beneficial for multiple reasons, so it should be used in the example.
Also the paragraph speaks about versions prior 3.0 which seems strange because
1. the page is served at https://docs.python.org/3/faq/programming.html i.e. corresponding to version Python 3
2. Python 2 maintenance has been finally dropped.
The provided example is still useful though, for example in multiple inheritance scenarios (though these are very specific and `super()` of course also works if base classes are compatible). So perhaps it's better left out? |
|
Date |
User |
Action |
Args |
2020-04-20 21:15:44 | Dominik V. | set | recipients:
+ Dominik V., docs@python |
2020-04-20 21:15:44 | Dominik V. | set | messageid: <1587417344.72.0.411751348323.issue40343@roundup.psfhosted.org> |
2020-04-20 21:15:44 | Dominik V. | link | issue40343 messages |
2020-04-20 21:15:44 | Dominik V. | create | |
|