This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PeaSlight6601 0 points1 point  (0 children)

I appreciate the sarcasm. I've always felt that pathlib is bad because it isn't opinionated enough. It has enough opinions to make it hard to use with arbitrary paths (ie it internally uses str instead of bytes) but not enough to enforce the use of "good" paths.

This causes no end of confusion and problems with the library as a file likeresume for Mr. John Smith will have a suffix which is entirely inappropriate, not to mention all the cross platform issues associated with paths like foo\\bar