assignment expression peeve

Paul Rubin http
Wed Oct 15 13:43:01 EDT 2003


Mark Day <mday at apple.com> writes:
> If you want to address the nesting aspect of the problem, don't forget
> the continue and break statements.  Instead of needing a (nested) else
> clause, you can put a continue or break in the if clause, and put the
> "else" work at the same indentation as the "if" statement itself.  

Thanks.  That's a good point and probably a workable solution for this
situation.  However it's still a nuisance that the most natural and
obvious way to write the code isn't permitted.




More information about the Python-list mailing list