Re: [Python-ideas] Add create mode to open()

Aug. 17, 2011
1:11 a.m.
On Tue, Aug 16, 2011 at 5:08 PM, Mike Meyer <mwm@mired.org> wrote:
Hm. Isn't the usual solution creating a temporary file in the same directory, and then atomically moving it with os.rename()? At least that's the Unix way that I am used to. The only other platform is Windows and I'm sure there's a similar solution using native syscalls, though I don't know what it is (and don't bring up the "Posix" extension :-).
It seems that open(fn, 'c') is only part of the solution -- you'd still have to do a move dance. -- --Guido van Rossum (python.org/~guido)
4963
Age (days ago)
4963
Last active (days ago)
0 comments
1 participants
participants (1)
-
Guido van Rossum