Message258238
Yes, OSError, MemoryError and KeyboardInterrupt can be raised during iterating scandir object or calling is_dir() or is_symlink() methods of the result. They stop iterating and left file descriptor open. If close file descriptor on error during iteration (issue26117), patch 1 becomes more safe, because it minimizes the lifetime of opened descriptor. |
|
Date |
User |
Action |
Args |
2016-01-14 22:26:51 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, vstinner, larry, benhoyt |
2016-01-14 22:26:51 | serhiy.storchaka | set | messageid: <1452810411.67.0.49151511301.issue25995@psf.upfronthosting.co.za> |
2016-01-14 22:26:51 | serhiy.storchaka | link | issue25995 messages |
2016-01-14 22:26:51 | serhiy.storchaka | create | |
|