Steven D'Aprano wrote:
> On Wed, 05 Apr 2006 16:15:12 +0200, Georg Brandl wrote:
>
>> [EMAIL PROTECTED] wrote:
>>> hi John,
>>> Python doesn't provide for loop like C / C++ but using Range() or
>>> Xrange() you can achive all the functionalities of the C for loop.
>>
>> Not quite.
>
> Care to explain what the differences are, or shall we guess?
C's for is much more powerful.
for(a; b; c) { d } translates to
a
while b
d
c
which can't be replaced by a simple
for i in range(...)
Georg
--
http://mail.python.org/mailman/listinfo/python-list