Luis NorambuenaM to [email protected]English • 8 hours agoPython's pathlib modulewww.pythonmorsels.comexternal-linkmessage-square8fedilinkarrow-up17arrow-down10file-text
arrow-up17arrow-down1external-linkPython's pathlib modulewww.pythonmorsels.comLuis NorambuenaM to [email protected]English • 8 hours agomessage-square8fedilinkfile-text
minus-square@[email protected]linkfedilink3•4 hours agoIt makes the code so much more clean and readable since you’re dropping multiple levels of brackets , for example os.path.join( a, b, os.path.dirname(c)) Becomes a / b / c.parent I really like it
It makes the code so much more clean and readable since you’re dropping multiple levels of brackets , for example
os.path.join( a, b, os.path.dirname(c))
Becomes
a / b / c.parent
I really like it
I always hated os.path. pathlib is just so much better.