Reason why xrange is not inheritable in Python?
Reason why xrange is not inheritable in Python? Question: 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? Asked By: Frozen Flame …