Luis Norambuena@programming.devM to Python@programming.devEnglish · 11 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 · 11 hours agomessage-square9fedilinkfile-text
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up1·11 hours agoNice, mypath.open() is a more semantic alternative to open(my path)
minus-squareunalivejoy@lemm.eelinkfedilinkEnglisharrow-up1·10 hours agoDon’t forget about the helper functions mypath.read_text() and mypath.write_text(content)
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up1·10 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