Peter Otten <__pete...@web.de> writes:

> You should wrap yield in a try ... finally. You might allow setting
> the new value in the manager (untested):

Thank you, both good advice.

I would still like to know if Python already has something to make this
unnecessary.

-- 
 \      “Compulsory unification of opinion achieves only the unanimity |
  `\        of the graveyard.” —Justice Roberts in 319 U.S. 624 (1943) |
_o__)                                                                  |
Ben Finney
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to