Re: Arithmetic sequences in Python
In <dqgpcm$eah$1@r eader2.panix.co m>, Roy Smith wrote:
[color=blue]
> Alex Martelli <aleax@mail.com cast.net> wrote:[color=green]
>>Agreed. *IF* we truly needed an occasional "up to X *INCLUDED*"
>>sequence, it should be in a syntax that can't FAIL to be noticed, such
>>as range(X, endincluded=Tru e).[/color]
>
> How about...
>
> for i in (0..x]:
> blah[/color]
That would break most editors "highlight matching brace" functionality.
Ciao,
Marc 'BlackJack' Rintsch
In <dqgpcm$eah$1@r eader2.panix.co m>, Roy Smith wrote:
[color=blue]
> Alex Martelli <aleax@mail.com cast.net> wrote:[color=green]
>>Agreed. *IF* we truly needed an occasional "up to X *INCLUDED*"
>>sequence, it should be in a syntax that can't FAIL to be noticed, such
>>as range(X, endincluded=Tru e).[/color]
>
> How about...
>
> for i in (0..x]:
> blah[/color]
That would break most editors "highlight matching brace" functionality.
Ciao,
Marc 'BlackJack' Rintsch
Comment