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

Jacek Bialek
Jacek Bialek
18,225 Points

do we really need a "super().__init__" in attributes.py ?

I'm little confused with this

1 Answer

Steven Parker
Steven Parker
231,261 Points

Without seeing what this refers to, I'd guess that this code is in an override of the "__init__" method. In that case, using "super().__init__" allows you to call the parent version of the same method so you don't have to repeat the code it already has.

If that's not it, please provide a link to the course page and elaborate a bit on the question.