>>>>> "Michele" == michele simionato <[EMAIL PROTECTED]> writes:

    Michele> But then why he agreed to have the loop variable
    Michele> disappear outside a generator comprehension?  I think
    Michele> there is something more than a backward compatibility
    Michele> concern.

With normal for-loop (as opposed to genexps and LCs), the "last" value
of the loop variable might be useful outside the loop if the loop was
exited prematurely through 'break' statement or exception.

-- 
Ville Vainio   http://tinyurl.com/2prnb
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to