1

Looking for best practices here:

Is it always better to explicitly call the parent constructor within a child class irrespective whether it is defined or not?

Example:

# no explicit constructor
class Parent(object):
    pass

class Child(Parent):
  # call parent constructor
   def __init__(self):
      super(Child, self). ___init__()
Neel
  • 9,913
  • 16
  • 52
  • 74

0 Answers0