Michal Bozon wrote:
> The .. syntax was not meant only as something
> which would include the last item,
> but also/rather a range list syntactic shortcut:
>
> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] -->
> [0, 1, ... 9, 10] -->
> [0..10]
>
OK, I see.
But I still fail to see where this is useful. All
On Thu, 25 Oct 2007 01:16:57 +0200, Wildemar Wildenburger wrote:
> Michal Bozon wrote:
>> many Python newcomers are confused why
>> range(10), does not include 10.
>>
> It produces a list of ten elements. Also the documentation is quite
> clear on the topic. And lastly: This will probably really
Michal Bozon wrote:
> many Python newcomers are confused why
> range(10), does not include 10.
>
It produces a list of ten elements. Also the documentation is quite
clear on the topic. And lastly: This will probably really bother you for
a week, then no more.
> If there was a proposal for the
many Python newcomers are confused why
range(10), does not include 10.
If there was a proposal for the new
syntax for ranges, which is known
e.g. from Pascal or Ruby...
>>> [0..10]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
...is there a chance to be approved ?
We have had a short discussion on it
at t