You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It unnecessarily complicates portions of the code, especially the testing code.
It may require users to set an "invalid parameter handler" for it to work properly. Most probably won't realize this and will be confused to see their programs segfault.
The real killer: Windows handles file descriptors differently, and a function that closes all file descriptors just isn't necessary for security on Windows.
The way I understand it, only file descriptors 0, 1, and 2 are ever inherited across program launches. File handles are inherited by default, but we can't close them.
Implement size_hint() for FdIter
Add warnings to the docs of iter_open_fds() and iter_possible_fds()