"also" to balance "else" ?

John Roth newsgroups at jhrothjr.com
Tue Jun 14 09:05:30 EDT 2005


"Andrew Dalke" <dalke at dalkescientific.com> wrote in message 
news:pan.2005.06.14.07.20.19.532887 at dalkescientific.com...
> Ron Adam wrote:
>> True, but I think this is considerably less clear.  The current for-else
>> is IMHO is reversed to how the else is used in an if statement.
>
> As someone else pointed out, that problem could be resolved in
> some Python variant by using a different name, like "at end".
> Too late for anything before P3K.

I don't think it has to wait. There seems to be a movement toward
putting new things in the next couple of releases, and then waiting until
3.0 to remove the old way of doing things.

So "at end" or "on normal exit" could be put in any time;
the use of "else" in that context wouldn't go away until 3.0.
The real question is whether it's worth doing at all. I consider
it a fairly minor issue, all told.

John Roth


>
>
> Andrew
> dalke at dalkescientific.com
> 




More information about the Python-list mailing list