Luis Norambuena@programming.devM to Python@programming.devEnglish · 2 years agoPython's pathlib modulewww.pythonmorsels.comexternal-linkmessage-square6linkfedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1external-linkPython's pathlib modulewww.pythonmorsels.comLuis Norambuena@programming.devM to Python@programming.devEnglish · 2 years agomessage-square6linkfedilinkfile-text
minus-squareleds@feddit.dklinkfedilinkarrow-up0·2 years 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.parentI really like it