STINNER Victor <victor.stin...@gmail.com> added the comment: I would prefer to catch os.lchmod() exception and reminds that lchmod() doesn't work. Search for _O_TMPFILE_WORKS in Lib/tempfile.py for a Python example of code trying to use a function, or falls back on something else.
(I gave other examples for C code in a comment on PR 4267.) ---------- nosy: +haypo _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31940> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com