try: finally: question

Tim Peters tim.peters at gmail.com
Thu Jul 15 22:22:06 EDT 2004


[Tim]
>> Not because it can't be defined clearly, but
>> because any way of defining it is so arbitrary it leaves half of
>> programmers believing that the other way of defining it was "the only
>> obvious" way.  Don't allow mixing except with finally, and the
>> programmer has to be explicit about their intent.  That was (and
>> remains) a Pythonic solution.

[OKB (not okblacke)]
>        Out of curiosity, what would be wrong with allowing both, but
> insisting that the finally block (if it exists ) must come last?

Please read the thread from its start.  That *is* what Python used to do.

> ...



More information about the Python-list mailing list