Diez B. Roggisch wrote:
Paul Rubin wrote:
>
> use contextlib.nexted().
You mean contextlib.nested I guess.
Although "nexted" is an intriguing-sounding word. I wonder
what it could mean?
--
Greg
--
http://mail.python.org/mailman/listinfo/python-list
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 kno
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().
--
http://mail.python.org/mailman/listinfo/python-list
braver schrieb:
Can open two files in a with statement:
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?
The comma syntax doesn't work, but is there a way, except for
with open(src) as read
Can open two files in a with statement:
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?
The comma syntax doesn't work, but is there a way, except for
with open(src) as readin:
with open(ds