Temporary Files
Tony Meyer
ta-meyer at ihug.co.nz
Fri May 2 00:18:35 EDT 2003
> Well, just to interrupt this internal dialog, would it help if you
> actually *did* that and then tell us what you see? ;-)
Well, one problem is that the original method works fine for me, as does
the copyfileobj one. I don't have a linux box to test on, and rather
than go through the slow process of getting someone else to do the test,
I thought maybe someone could tell me a canonically correct method of
doing it.
It does seem to work (although there needs to be a seek() after the
flush()), but then the old way did too ;)
I presume from the scarcity of replies, that there *isn't* a canonical
method of doing this, and so what I've got will do.
> You'll notice that like you I'm too idle to spend an hour looking for
> shutil.copyfileobj() when I could do it in Python in a few lines ;-)
:) And they hid the doc on it right next to shutil.copyfile(), too -
why would I look *there*? ;)
=Tony Meyer
More information about the Python-list
mailing list