Michael Hoffman wrote:
>
> Why aren't you using NamedTemporaryFile instead? Using mkstemp adds a
> lot of complications that are usually unnecessary.
I believe I originally used mktemp(), but forgot how I learned that I
should use mkstemp() instead. I originally wrote the script over 1.5
years ag
Anthony wrote:
> I only have a tempfile object:
>
> tmp = tempfile.mkstemp(dir="/var/tmp/")
Why aren't you using NamedTemporaryFile instead? Using mkstemp adds a
lot of complications that are usually unnecessary.
> I will try to explicitly call a close() or whatever the syntax is to
> finalize
Thanks for the tip on strace. I will look into it.
I only have a tempfile object:
tmp = tempfile.mkstemp(dir="/var/tmp/")
I will try to explicitly call a close() or whatever the syntax is to
finalize the object to deletion by garbage collection.
Thanks,
Kenny
--
http://mail.python.org/mailma
kennywiggin wrote:
> .flac: ERROR while decoding data
> state = FLAC__STREAM_DECODER_READ_FRAME
>
> The script fails to decode any more flac files until the vm
> crashes from having too many open files.
Whoa! Time to start using file.close() after you're done with each
file.
If that doesn't fix