Lena@gregtech.eu to Programmer Humor@programming.devEnglish · 2 days agoI wonder if this was made by AI or a shit programmergregtech.euimagemessage-square160fedilinkarrow-up1841arrow-down17
arrow-up1834arrow-down1imageI wonder if this was made by AI or a shit programmergregtech.euLena@gregtech.eu to Programmer Humor@programming.devEnglish · 2 days agomessage-square160fedilink
minus-squareDiplomjodler@lemmy.worldlinkfedilinkarrow-up5·5 hours ago Everything is in one library which offers consistency for all operations. You can use forward slashes on Windows paths, which makes for much better readability. You can access all the parts of a pathlib object with attributes like .stem, .suffix or .parent. You can easily find the differences between paths with .relative_to() You can easily build up complex paths with the / operator (no string additions). Just off the top of my head.
minus-squarenibbler@discuss.tchncs.delinkfedilinkEnglisharrow-up1·edit-24 hours agoif you don’t need those, why burden the program with another dependency?
minus-squareDiplomjodler@lemmy.worldlinkfedilinkarrow-up1·4 hours agoIt’s in the standard library, just like os or shutil.
Just off the top of my head.
if you don’t need those, why burden the program with another dependency?
It’s in the standard library, just like os or shutil.