homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients David.Townshend, Julian, benjamin.peterson, docs@python, neologix, pitrou, vstinner
Date 2011年08月24日.20:35:53
SpamBayes Score 1.406097e-05
Marked as misclassified No
Message-id <1314218155.01.0.812761232737.issue12760@psf.upfronthosting.co.za>
In-reply-to
Content
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 
History
Date User Action Args
2011年08月24日 20:35:55pitrousetrecipients: + pitrou, vstinner, benjamin.peterson, neologix, docs@python, Julian, David.Townshend
2011年08月24日 20:35:55pitrousetmessageid: <1314218155.01.0.812761232737.issue12760@psf.upfronthosting.co.za>
2011年08月24日 20:35:54pitroulinkissue12760 messages
2011年08月24日 20:35:53pitroucreate

AltStyle によって変換されたページ (->オリジナル) /