Luis Norambuena@programming.devM to Python@programming.devEnglish · 2 years agoPython's pathlib modulewww.pythonmorsels.comexternal-linkmessage-square2linkfedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1external-linkPython's pathlib modulewww.pythonmorsels.comLuis Norambuena@programming.devM to Python@programming.devEnglish · 2 years agomessage-square2linkfedilinkfile-text
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up0·2 years agoNice, mypath.open() is a more semantic alternative to open(my path)
minus-squareunalivejoy@lemm.eelinkfedilinkEnglisharrow-up0·2 years agoDon’t forget about the helper functions mypath.read_text() and mypath.write_text(content)
Nice, mypath.open() is a more semantic alternative to open(my path)
Don’t forget about the helper functions
mypath.read_text()andmypath.write_text(content)