[docs] [issue12760] Add create mode to open()
Amaury Forgeot d'Arc
report at bugs.python.org
Mon Oct 31 11:32:11 CET 2011
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
issue12797 would allow things like:
def create_exclusive_file(filename):
return open(filename, "w",
opener=lambda path, mode: os.open(path, mode|os.O_CREAT|os.O_EXCL))
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12760>
_______________________________________
More information about the docs
mailing list