This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author abacabadabacaba
Recipients abacabadabacaba
Date 2016-05-22.18:15:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463940932.93.0.542961773489.issue27086@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-05-22 18:15:32abacabadabacabasetrecipients: + abacabadabacaba
2016-05-22 18:15:32abacabadabacabasetmessageid: <1463940932.93.0.542961773489.issue27086@psf.upfronthosting.co.za>
2016-05-22 18:15:32abacabadabacabalinkissue27086 messages
2016-05-22 18:15:32abacabadabacabacreate