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

[Python-Dev] ValueErrors in range()

[Python-Dev] ValueErrors in range() [Python-Dev] ValueErrors in range()Chad Netzer cnetzer@mail.arc.nasa.gov
15 Apr 2003 12:11:38 -0700
On Tue, 2003-04-15 at 05:42, Guido van Rossum wrote:

> > Shouldn't these be TypeErrors?
> 
> Right!  I did not review this code enough. :-(  Fixing now...

My fault again.  I misremembered Guido wishing that range() returned
ValueError on floats (which I thought was strange at the time).  Going
over a previous email, I see that he did say TypeError.

In the meantime, the test_builtins.py needs to be updated to check
against TypeError rather than ValueError.  (maybe it'll be done by now;
ah, just checked, it has)

Chad Netzer





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