As a follow-up to my yesterday's question - are there any recommendations
on the usage of super()?
It's clear that super() can be used to invoke parent's:
- instance methods
- static methods
- constants ("static" attributes in the parent class, e.g. super().NUMBER).
This all works, but are there situations in which calling them explicitly
using a parent class name is preferred?
Best regards,
Peter
--
https://mail.python.org/mailman/listinfo/python-list
on the usage of super()?
It's clear that super() can be used to invoke parent's:
- instance methods
- static methods
- constants ("static" attributes in the parent class, e.g. super().NUMBER).
This all works, but are there situations in which calling them explicitly
using a parent class name is preferred?
Best regards,
Peter
--
https://mail.python.org/mailman/listinfo/python-list