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 trialJacob Fong
3,754 PointsWhy 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
229,670 PointsThe 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.
Jacob Fong
3,754 PointsJacob Fong
3,754 PointsThat is true, I see, but don't we include a self when doing a traditional
def __init__?
Steven Parker
229,670 PointsSteven Parker
229,670 PointsI corrected my answer, take another look.