Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Stop working so hard on paths. Get started with pathlib (everydaysuperpowers.dev)
3 points by gilad on July 25, 2020 | hide | past | favorite | 1 comment


I'm so familiar with string manipulation, and so many other standard library functions take strings (e.g. `open`) that it feels like a lot of API memorization and acrobatics passing a Path object back and forth between a Path and a String that I can see why people might just stick to good old `os.path`.

I mean I use the Path library, and I think I like it, but I find myself consulting the dogs for it way more often than I do with `os.path`.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: