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