Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

glob is part of pathlib in Python 3. Pathlib is great.


But, unfortunately, very slow.

https://youtu.be/tFrh9hKMS6Y


glob works on more than paths, though


Like what for example?


They probably mean fnmatch, which is what glob actually uses under the hood. That's indeed a useful module for simple wildcard filtering.


Exactly! I use fnmatch a lot to translate glob strings to regexes (in a VFX company, I'm a developer for a Houdini and in-house software pipeline).

Being able to provide solid globbing options to users in any scenario that is 'path-y' can provide massively more power to them, in lots of different cases I'd say.


My bad, I did mix it up with fnmatch.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: