Tuple comprehension
Huaiyu Zhu
huaiyu at gauss.almadan.ibm.com
Thu Apr 11 14:08:27 EDT 2002
On Thu, 11 Apr 2002 16:17:24 GMT, Alex Martelli <aleax at aleax.it> wrote:
>Tim Peters wrote:
> ...
>> ... for i in range(n):
> ...
>> is one way to get the same end result without building a list in one gulp
>
>Actually, range DOES "build a list in one gulp" (but I guess you might
>use xrange instead:-).
One ancillary question: why xrange(n) is not iterator?
Huaiyu
More information about the Python-list
mailing list