Robert Bradshaw added the comment: Yes, that is a workaround, but range(MyInt(n), MyInt(n+10)) should work for any valid value of n, not just some of them. __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1533> __________________________________