Luis Norambuena@programming.devM to Python@programming.devEnglish · 10 hours agoPython's pathlib modulewww.pythonmorsels.comexternal-linkmessage-square9fedilinkarrow-up110arrow-down10file-text
arrow-up110arrow-down1external-linkPython's pathlib modulewww.pythonmorsels.comLuis Norambuena@programming.devM to Python@programming.devEnglish · 10 hours agomessage-square9fedilinkfile-text
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up1·10 hours agoNice, mypath.open() is a more semantic alternative to open(my path)
minus-squareunalivejoy@lemm.eelinkfedilinkEnglisharrow-up1·9 hours agoDon’t forget about the helper functions mypath.read_text() and mypath.write_text(content)
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up1·9 hours agothat’s already in the cheatsheet
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)
that’s already in the cheatsheet