Guido> I'd be much happier if there was a standard API in tempfile.py
Guido> that did that for you, so you wouldn't have to understand
Guido> fdopen().
That can be arranged:
http://bugs.python.org/issue2717
Guido> (Your example is wrong BTW, the open mode would have to be
Guido> something like 'rb+' or 'wb+'.)
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 (e.g.,
normally opened with "w+b").
Skip
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com