TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Stop working so hard on paths. Get started with pathlib

3 pointsby giladalmost 5 years ago

1 comment

djhaskin987almost 5 years ago
I&#x27;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`.<p>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`.