Paul Rubin wrote:

> braver <[EMAIL PROTECTED]> writes:
>> with open(src) as readin, open(dst,"w") as writin:   # WRONG: comma
>> doesn't work
>>   ...
>> -- so that you have transactional safety for two file descriptors?
> 
> use contextlib.nexted().

You mean contextlib.nested I guess. Didn't know about that module, cool!

However, the fundamental problem stays: rolling back only works if the
innermost context fails.

Diez
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to