A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-April/034617.html below:

[Python-Dev] ValueErrors in range()

[Python-Dev] ValueErrors in range() [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




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4