----- Original Message -----
> From: "acdr" <mail.a...@gmail.com>
> To: "Jean-Michel Pichavant" <jeanmic...@sequans.com>
> Cc: python-list@python.org
> Sent: Tuesday, 2 June, 2015 4:00:12 PM
> Subject: Re: for...else
> 
> The first solution in your e-mail (with a Cleanup exception) is
> definitely very close, functionally, to what I want to accomplish. In
> effect, it's the same structure as my original suggestion of
> "for...then...else", except now it'd be "try: for...else...except".
> That's workable. I can even cheat and rename the Cleanup class to
> "Break" for clarity.
> 
> I'm guessing that there is not much support for functionality like
> this to be built in, in a much less verbose manner, like the
> "for...else" functionality? :P

By the way please don't top post in this list.

You're right the first solution is not that helpfull. I quite dislike try 
blocks. But I dislike "for else" even more. While "if else"  is a correct 
english construct and means something, "for else " is not (correct me if I'm 
wrong).

"for else" works perfectly, I just can never remember on which condition the 
else block is processed.

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be 
privileged. If you are not the intended recipient, please notify the sender 
immediately and do not disclose the contents to any other person, use it for 
any purpose, or store or copy the information in any medium. Thank you.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to