Sep-03-2023, 05:34 PM
in "16.1. os — Miscellaneous operating system interfaces" there is this text (in my PDF copy of "The Python Library Reference"):
my experience from my days of coding most everything in C told me that every platform supported following a symlink and some did NOT support NOT following a symlink. so, it seems this test should be the other way around. there should be os.supports_nofollow_symlinks which would be like AT_SYMLINK_NOFOLLOW in C (defined in fcntl.h so utimnsat(2) can use it).
Output:You can check whether or not follow_symlinks is supported on your platform using os.supports_follow_symlinks. If it is unavailable, using it will raise a NotImplementedError
what is meant by "using"? trying to access it as an attribute? checking if the attribute exists? what is the appropriate way to test if the platform a script is running on supports this?my experience from my days of coding most everything in C told me that every platform supported following a symlink and some did NOT support NOT following a symlink. so, it seems this test should be the other way around. there should be os.supports_nofollow_symlinks which would be like AT_SYMLINK_NOFOLLOW in C (defined in fcntl.h so utimnsat(2) can use it).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.