[Python-Dev] ValueErrors in range()

Walter Dörwald walter@livinglogic.de
Tue, 15 Apr 2003 13:53:02 +0200


Current CVS raises ValueErrors for range() arguments
of the wrong type:

 >>> range(0, "spam")
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ValueError: integer end argument expected, got str.

Shouldn't these be TypeErrors?

Bye,
    Walter Dörwald