Joseph Kuan wrote: > > How to derive the range function for a particular class? > > I tried with __range__ but it doesn't work. I don't understand, why would you? Range doesn't "take" a class, it takes numbers! It returns a list of numbers. Give an example of what you want to do.