[issue35802] os.stat / os.lstat always present, but code checks hastattr(os, 'stat') / hasattr(os, 'lstat')

Anthony Sottile report at bugs.python.org
Mon Jan 21 16:50:09 EST 2019


Anthony Sottile <asottile at umich.edu> added the comment:

looks true for os.chmod as well: https://github.com/python/cpython/blob/7a2368063f25746d4008a74aca0dc0b82f86ff7b/Modules/clinic/posixmodule.c.h#L327-L328

----------

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


More information about the Python-bugs-list mailing list