David Townshend <aquavita...@gmail.com> added the comment:

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')"

----------

_______________________________________
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