Antoine Pitrou <pit...@free.fr> added the comment:

Ah, right. Well I think all arguments against it were quite weak (or even 
wrong). Let's see:

- it's not cross-platform: actually it is (OS_EXCL has been POSIX since at 
least 1997 (*), and Windows also has it)

- os.open followed by os.fdopen is easy: it isn't that easy to get the 
incantation right (the pure Python open() in _pyio is 70 lines of code), 
especially if you want the file object to have the right "name" attribute

- it doesn't fill a use case: actually, avoiding race conditions is an 
important use case, even though many people may never encounter it (I must 
admit I myself never really cared about this)

So this looks like a reasonable feature request IMHO.

(*) http://pubs.opengroup.org/onlinepubs/007908799/xsh/open.html

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12760>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to