Python Object-Oriented Python Advanced Objects Double

Why? RecursionError: maximum recursion depth exceeded!

I'm not sure whats we try to explain to me! Whats wrong?

doubler.py
class Double(int):
    def __new__(*args, **kwargs):
        return 2 * int.__new__(*args, **kwargs)

class int:
    def __new__(*args, **kwargs):
        self = int.__new__(*args, **kwargs)
        self = self[::-1]
        return self

2 Answers

Your code passes all three tasks if you remove the 'class int' code, that is not needed for the challenge and is not asked to do.