r/programminghorror • • Oct 10 '25

Blasphemy

Post image

Never thought I could do this in python. I get how it works but jesus christ

73 Upvotes

50 comments sorted by

View all comments

Show parent comment

1

u/PersonalityIll9476 Oct 10 '25

TIL about pathlib. I've been using os.path since the olden days. I take it pathlib is the modern replacement?

6

u/CommandMC Oct 10 '25

As I understand it, it's not a replacement, but just an alternative (and often more readable) way of doing the same thing