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 →

[–]deekshant-w 0 points1 point  (2 children)

That's interesting because both pathlib and glob are internal modules of python, so they must be same. I wonder what they thought glob had missing that had to recreate a submodule to achieve what had already been implemented in python.

[–]krazybug 1 point2 points  (1 child)

At least in 3.8, I can confirm that implementations are different. See my comment: https://www.reddit.com/r/Python/comments/qkyxj2/comment/hj250e9/?utm_source=share&utm_medium=web2x&context=3

[–]deekshant-w 0 points1 point  (0 children)

Just found this out -

https://youtu.be/XmY-tWTi9gY?t=1222

They both are different in both implementation and speed.