I was trying to inherit xrange (to implement membership testing with in, as well as iteration). But I got the following error message:
TypeError: Error when calling the metaclass bases
type 'xrange' is not an acceptable base type
What's special about xrange?