try: finally: question

OKB (not okblacke) BrenBarn at aol.com
Thu Jul 15 23:07:23 EDT 2004


Tim Peters wrote:

> [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. 

    	Oh, ok.  The only message I've seen in this thread describing the 
behavior was:

[Peter Hansen]
>For example, if an exception were raised in a finally clause which
>came just before the except clause, would the except clause catch it?

    	Which seems to be saying that finally clauses could come before 
except clauses.

-- 
--OKB (not okblacke)
Brendan Barnwell
"Do not follow where the path may lead.  Go, instead, where there is
no path, and leave a trail."
	--author unknown



More information about the Python-list mailing list