logoalt Hacker News

vtbassmattyesterday at 1:41 PM1 replyview on HN

I would have agreed with this, and then they did the `pathlib.Path` bit of cuteness with the `/` operator: https://github.com/python/cpython/blob/5afbb60e0283caaf34990...

And despite my misgivings, it’s really ergonomic.


Replies

pbalauyesterday at 2:46 PM

If you divide a Path by another Path, you get a Path. If you compare two Paths, you get a Boolean. It is not really the same.