Hacker News new | ask | show | jobs
by ch0wn 4862 days ago
> which by the way, is super awkward syntax, repeating both self and BaseClass

In Python 3, you can write just `super()`, even though I personally prefer the verbose (and thus explicit) way.

In single-inheritance cases, there's actually no benefit of using super(), so using `BaseClass.__init__(self, args, *kwargs)` is even more explicit.

1 comments

I screwed up the markup there, it's supposed to be

    BaseClass.__init__(self, *args, **kwargs)