Yield inside try...finally

Alan Kennedy alanmk at hotmail.com
Tue Jun 3 13:37:57 EDT 2003


Alan Kennedy wrote:

[A vain attempt to get around the try..yield..finally exclusion in python ]

D'oh!

Of course, the example I wrote doesn't work!

It only works when there is no exception, which is the whole point of a finally
clause.

Sorry about the diversion. Normal service will be resumed as soon as possible
:-)

regards,

-- 
alan kennedy
-----------------------------------------------------
check http headers here: http://xhaus.com/headers
email alan:              http://xhaus.com/mailto/alan




More information about the Python-list mailing list