Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Why don't we include self when we call super().__init__(name, **kwargs)?

We usually include self as an argument in other class methods. Why don't we do, then, super().init(self, name, **kwargs)?

1 Answer

Steven Parker
Steven Parker
229,670 Points

The first parameter in a method is a reference to the object it was called on, it's not passed explicitly as an argument when the method is called.

That is true, I see, but don't we include a self when doing a traditional def __init__?

Steven Parker
Steven Parker
229,670 Points

I corrected my answer, take another look.