Am 03.09.2012 14:32, schrieb Marco: > Does anyone have an example of utilisation?
The opener argument is a new 3.3 feature. For example you can use the
feature to implement exclusive creation of a file to avoid symlink attacks.
import os
def opener(file, flags):
return os.open(file, flags | os.O_EXCL)
open("newfile", "w", opener=opener)
--
http://mail.python.org/mailman/listinfo/python-list
