Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Object-Oriented Python Advanced Objects Double

Kars Jansens
Kars Jansens
5,348 Points

I don't understand this {python}


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.


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
216,136 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.