Author David.Townshend
Recipients David.Townshend, benjamin.peterson, docs@python, neologix, pitrou, vstinner
Date 2011-08-18.11:56:52
SpamBayes Score 7.95655e-06
Marked as misclassified No
Message-id <1313668613.93.0.73423824885.issue12760@psf.upfronthosting.co.za>
In-reply-to
Content
My aim isn't to add all the commonly used flags, that would be pointless since its already possible using os.open.  The aim is to add a missing feature to the builtin open(), i.e. file creation.  At the moment open() implements read, write, and append, and creation is only implied by write. But in many cases, an explicit creation is desired (i.e, specifically create a new file, with an exception on failure).  It is true that this is possible with os.open, but it is somewhat obscure, especially for beginners, and is not as easy to read as "open(file, 'c')"
History
Date User Action Args
2011-08-18 11:56:54David.Townshendsetrecipients: + David.Townshend, pitrou, vstinner, benjamin.peterson, neologix, docs@python
2011-08-18 11:56:53David.Townshendsetmessageid: <1313668613.93.0.73423824885.issue12760@psf.upfronthosting.co.za>
2011-08-18 11:56:53David.Townshendlinkissue12760 messages
2011-08-18 11:56:52David.Townshendcreate