Amaury Forgeot d'Arc <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue12760>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com