Should one always add super().__init__() to the __init__?
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Sun Sep 30 00:23:45 EDT 2012
On Sat, 29 Sep 2012 20:14:10 -0700, Ramchandra Apte wrote:
> I forgot something:
> I meant super().__init__() or similar
What about it? Please try to remember that we can't read your mind and
don't know what you are thinking, we can only work from what you put in
writing.
There is no difference between super(Class, self).__init__ and
super().__init__ except that the second version only works in Python 3.
--
Steven
More information about the Python-list
mailing list