[Python-Dev] PEP 204 - Range Literals

esr@thyrsus.com esr@thyrsus.com
Tue, 18 Jul 2000 12:36:31 -0400

Thomas Wouters <thomas@xs4all.net>:
> Well, I guess I agree. The above was just a bit of 'Red Red Wine' induced
> brainstorm, but on reflection it does seem logical. The one-dimensionality
> of range and xrange always bothered me ;) The biggest problem is, however,
> how to create a 'range' of a specific type of object, given a start, step
> and end object. A new PyNumberMethods member 'int_range' ? Or some kind of
> 'newobject_fromnumber' protocol ?

Let's worry about that later.  For now, throwing an exception is OK.

> How about we checkin the current patch, which does what the PEP describes,
> and continue the PEP for the sake of these issues ? :)

		<a href="http://www.tuxedo.org/~esr">Eric S. Raymond</a>

If I were to select a jack-booted group of fascists who are 
perhaps as large a danger to American society as I could pick today,
I would pick BATF [the Bureau of Alcohol, Tobacco, and Firearms].
        -- U.S. Representative John Dingell, 1980