Python and the need for speed
Ben Bacarisse
ben.usenet at bsb.me.uk
Sat Apr 15 12:31:00 EDT 2017
bartc <bc at freeuk.com> writes:
<snip>
> 'do', in the original Algol 68 syntax, was part of its 'for'
> statement, where you could leave out the parts you don't need. The
> full syntax is something like:
>
> for var := a to b by c while d do body od
FOR name FROM e1 BY e2 TO e3 WHILE cond DO body OD
The significant part is the the name is bound to a value and can't be
assigned in the body. (You don't say it can be but "var := a" makes var
look like a plain Algol68 variable.)
<snip>
--
Ben.
More information about the Python-list
mailing list