Message341210
It'd be nice to have an option to os.walk which would return DirEntry objects in its return tuple, as opposed to just the string filenames/dirnames. (Or failing that, an alternate function which does so.) The function already uses os.scandir() internally, so the DirEntry objects already exist -- I assume it'd be a pretty easy change. At the moment, if I want to be efficient and use os.scandir() myself, I've got to basically reimplement os.walk(), which seems silly since os.walk is already calling scandir itself. |
|
Date |
User |
Action |
Args |
2019-05-01 15:20:07 | apocalyptech | set | recipients:
+ apocalyptech |
2019-05-01 15:20:07 | apocalyptech | set | messageid: <1556724007.57.0.489851634937.issue36771@roundup.psfhosted.org> |
2019-05-01 15:20:07 | apocalyptech | link | issue36771 messages |
2019-05-01 15:20:07 | apocalyptech | create | |
|