[socal-piggies] weird behavior with files on different filesystems
William Yardley
piggies at veggiechinese.net
Fri Mar 7 14:01:08 PST 2008
On Fri, Mar 07, 2008 at 12:17:47PM -0800, Daniel Arbuckle wrote:
> Two more hints.
>
> First, if you want a temp file, mkstemp isn't the function you want to
> use. You really want tempfile.TemporaryFile or
> tempfile.NamedTemporaryFile. mkstemp is a low-level interface, and
> it'll just hurt you to use it. The code you posted doesn't actually
> call mkstemp, but it's something to be aware of.
Yeah - I did use it (mkstemp), but I'll look into
I did look at the tempfile pydoc, but didn't realize that it made more
sense to use (Named)TemporaryFile.
Thanks to everyone with your on (and off) list help - the pointers are
appreciated.
w
More information about the socal-piggies
mailing list