"Diez B. Roggisch" <de...@nospam.web.de> writes:
> In python 2.5 and upwards, you can write this safer
> from __future__ import with_statement # only needed for py2.5
> with myInstance.lock:
>    ... critical section

Good point!
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to