[issue37983] macOS: os.lchmod() incorrectly removed by 2.7.16

Ned Deily report at bugs.python.org
Thu Aug 29 16:06:33 EDT 2019


Ned Deily <nad at python.org> added the comment:

lchmod is one of a number of os functions that is not available on older versions of macOS.  Chances are you are using a Python binary (possibly one supplied by a python.org installer) that was built to be used on a range of macOS versions and the oldest version did not support lchmod.  Note that there is a general warning about interface availability in the documentation for the os module:

"An “Availability: Unix” note means that this function is commonly found on Unix systems. It does not make any claims about its existence on a specific operating system."

Either use a version of Python built only for the latest versions of macOS or add a test in your code for the availability of lchown.

https://docs.python.org/2/library/os.html

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37983>
_______________________________________


More information about the Python-bugs-list mailing list