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

Gregory P. Smith report at bugs.python.org
Tue Jan 22 13:34:30 EST 2019


Gregory P. Smith <greg at krypto.org> added the comment:

I suspect these conditionals are very old and came from times when we supported some platforms that did not have these APIs.

Are they present on all CPython supported platforms today?

Windows is probably the only one left to verify.

BSD/Linux/Un*xes and modern macOS are POSIX.

macOS <= 9 (classic) has long since died.

----------
nosy: +gregory.p.smith

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


More information about the Python-bugs-list mailing list