[Python-Dev] Warn about mktemp once again? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Apr 29 07:50:33 CEST 2008
- Previous message: [Python-Dev] Warn about mktemp once again?
- Next message: [Python-Dev] Warn about mktemp once again?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
skip at pobox.com wrote:
I'm not disagreeing with you, but it seems odd that os.fdopen doesn't simply obey the mode of the file descriptor it receives as its argument
I'm not even sure if it's possible to find out the mode that a file descriptor was opened with -- is it?
Certainly there's no way to tell whether you want it treated as binary, so at least that much of the mode needs to be specified.
-- Greg
- Previous message: [Python-Dev] Warn about mktemp once again?
- Next message: [Python-Dev] Warn about mktemp once again?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]