I've got in the habit of using Pathlib all the time instead of os. I find the code is more concise and it seems better and more powerful to use an object oriented approach rather than manipulate strings which os does.
But most code I read still uses os module, including PyTorch itself. Why is this? Are there speed advantages of using os? Or is it just a convention which is taking a long time to change? Or something else?
This answer describes high level differences between os and Pathlib but doesn't explain why libraries make the choices they have.