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/034620.html below:

[Python-Dev] ValueErrors in range()

[Python-Dev] ValueErrors in range() [Python-Dev] ValueErrors in range()Guido van Rossum guido@python.org
Tue, 15 Apr 2003 08:42:43 -0400
> 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?

Right!  I did not review this code enough. :-(  Fixing now...

--Guido van Rossum (home page: http://www.python.org/~guido/)



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