Serhiy Storchaka email@example.com added the comment:
Unfortunately issue25596 didn't change anything about this issue. iglob() still stores names (actually DirEntry objects) of all files in a directory before starting yielding the first of them. Otherwise we cold exceed the limit of open file descriptors.
---------- nosy: +serhiy.storchaka