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 Object-Oriented Python Advanced Objects Double

Kars Jansens
Kars Jansens
5,348 Points

I don't understand this {python}

Hey

I have a problem. I do not even understand a bit of the this. I do not even know how to start with this accept "class Double()". I would like if someone could explain everything what's happening in my code and what I need to do. I really can use some help.

Kars.

This is the question: Now override new. Create a new int instance from whatever is passed in as arguments and keyword arguments. Return that instance.

You should remove the pass.

1 Answer

Steven Parker
Steven Parker
231,198 Points

Overriding "__new__" just means you will create a method by that name. And in that method, you will create a new "int" and return it.

When you get completely stuck, it can often be helpful to look at the answers to other questions previously asked about the same challenge.