[Python-Dev] non-integer slice indices?

Greg Stein gstein@lyra.org
Mon, 14 Feb 2000 16:34:12 -0800 (PST)


On Mon, 14 Feb 2000, Barry A. Warsaw wrote:
> >>>>> "GS" == Greg Stein <gstein@lyra.org> writes:
>     GS> Typically, CPython is the reference platform. This would
>     GS> indicate that JPython has a bug.
> 
>     GS> Second, section 5.3.3 of the Language Reference states that
>     GS> the upper and lower bound of a slice must be integers. Again,
>     GS> this would indicate that JPython has a bug.
> 
> I think instead you have a case where JimH was (not-so?)subtly trying
> to push Guido in a certain direction. :)

Yah... :-)

Guido always reserves the right to change the language definition. At the
moment, though, it is integers only (if you want to be portable across
Python implementations).

As MarkH would say: I'm not fussed about it.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/