Synchronization mixin in Python anyone?
Alex Martelli
aleax at aleax.it
Mon May 6 10:56:25 EDT 2002
Gustavo Cordova wrote:
...
>> try:
>> args = self._args + args
>> kw.update(self._kw)
>> return = self._function(*args, **kw)
>> finally:
>> self._lock.release()
>>
>
> But what about any exception that's raised?
>
> Does the finally: clause re-raise the exception so that
> it can be caught upstream?
The exception keeps propagating after the finally clause
is done. finally does not interfere with exception propagation.
Alex
More information about the Python-list
mailing list