[Python-Dev] ValueErrors in range() (original) (raw)

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 "", line 1, in ? ValueError: integer end argument expected, got str.

Shouldn't these be TypeErrors?

Bye, Walter D�rwald