> for_stmt ::= "for" target_list "in" expression_list
> [ "and" expression ] ":"
> suite ["else" ":" suite]
It can't work. The expression_list could be just a variable, as could the
expression, in which case you get
"for" target_list "in" variable "and" variable ":"
and, of course
On Sun, Mar 20, 2005, Juan Carlos Rodrigo Garcia wrote:
>
> Hi My name is Juan Carlos Rodrigo, and I love Python. It is the most
> impressive and usefull language that I have ever seen.
Glad to hear that! However, your post is off-topic for python-dev;
you'll have a better discussion posting to
Juan Carlos Rodrigo wrote:
Interesting idea, but not really needed given the existence of the break statement:
Goto = break
I'm not interested.
All non-sequential control structures are merely constrained ways of using goto
(the underlying machine code will devolve into conditional and unconditio
Juan Carlos Rodrigo Garcia wrote:
It is easier if we see it beforehand:
-
leave = False
alist = [1,2,3,3,4,5,6,7,8,9]
for item in alist and not leave:
if item is 1: leave = True
Interesting idea, but not really needed given the existence of the break
statemen
Hi My name is Juan Carlos Rodrigo, and I love Python.
It is the most impressive and usefull language that
I have ever seen.
I am studing, at http://www.uoc.edu, an Information
Technology Postgraduate. And I have programmed some
REXX applications in my past Jobs (So I love python,
no more ENDS