Arithmetic sequences in Python

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Jan 16 15:43:12 EST 2006


In <dqgpcm$eah$1 at reader2.panix.com>, Roy Smith wrote:

> Alex Martelli <aleax at mail.comcast.net> wrote:
>>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=True).
> 
> How about...
> 
> for i in (0..x]:
>     blah

That would break most editors "highlight matching brace" functionality.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list