2 ms·
Yeah, and that's a problem. But again, Python is faced with bad choices because the interface exposed by OSes for file systems is basically broken. (But, that
by deathanatos 4y ago
Yeah, and that's a problem. But again, Python is faced with bad choices because the interface exposed by OSes for file systems is basically broken.
(But, that might also fall into the 1% case where you'd need to pay attention.)
Perhaps you might argue for a dedicated type like Rust's Path, but that too has issues, and I don't think Python had the "design freedom" to go there. (Although it does have pathlib, nowadays, so I wonder how it handles this; but it would also need to duplicate a lot of the functionality in os…)