Message 104728 - Python tracker (original) (raw)
On Sat, May 1, 2010 at 10:59 AM, Mark Dickinson <report@bugs.python.org> wrote:
Mark Dickinson <dickinsm@gmail.com> added the comment:
Decimal is behaving in exactly the same way as MyInt, isn't it? What do you get for range(MyInt(20), MyInt(20))?
Hmm, maybe there is a 2.7 bug here after all:
[20, 21, 22]
range(MyInt(264), MyInt(264+3)) Traceback (most recent call last): File "", line 1, in TypeError: range() integer start argument expected, got instance.
Same with Decimal:
Traceback (most recent call last): File "", line 1, in TypeError: range() integer start argument expected, got Decimal.