Message266094
Currently, when given a file descriptor, os.listdir will duplicate it so that the original file descriptor is not closed. In many cases, a file descriptor is not needed anymore after directory is listed, so this is not necessary. I propose adding a keyword argument closefd to os.listdir which, if set to True, will make os.listdir take ownership of the passed file descriptor and close it at the end. |
|
Date |
User |
Action |
Args |
2016-05-22 18:15:32 | abacabadabacaba | set | recipients:
+ abacabadabacaba |
2016-05-22 18:15:32 | abacabadabacaba | set | messageid: <1463940932.93.0.542961773489.issue27086@psf.upfronthosting.co.za> |
2016-05-22 18:15:32 | abacabadabacaba | link | issue27086 messages |
2016-05-22 18:15:32 | abacabadabacaba | create | |
|