Python Forum
Anyone play with os.scandir? It is awsome!
Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anyone play with os.scandir? It is awsome!
#4
os.walk will use os.scandir instead the way slower os.list. If it already has not happened.
PEP 471

There are many people still using Python 2.7 and arguing that it is better than v.3+. I am using Arch Linux so Python is always the latest stable version. Big Grin

It looks like it returns a generator so perhaps it could be used that way: async for entry in os.scandir('.')
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
RE: Anyone play with os.scandir? It is awsome! - by wavic - Sep-09-2017, 07:15 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020