[Python-Dev] ValueErrors in range() (original) (raw)
Walter D�rwald walter@livinglogic.de
Tue, 15 Apr 2003 13:53:02 +0200
- Previous message: [Python-Dev] Garbage collecting closures
- Next message: [Python-Dev] ValueErrors in range()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Garbage collecting closures
- Next message: [Python-Dev] ValueErrors in range()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]