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 neologix
Recipients neologix, pitrou, rosslagerwall
Date 2012-01-10.18:56:50
SpamBayes Score 8.0963575e-05
Marked as misclassified No
Message-id <1326221812.3.0.905477293867.issue13757@psf.upfronthosting.co.za>
In-reply-to
Content
os.fdlistdir() closes the FD passed as argument.
This is annoying, since in 99% of the cases you'd like to keep FD intact, so you end up doing os.fdlistdir(os.dup(fd)).
Here's a patch that duplicates the FD in fdlistdir(), so that the original FD is kept intact, which is much more natural (at least to me :).
That's an API change, but since fdlistdir() has been introduced in 3.3 which hasn't been released yet, I think it should be acceptable.
History
Date User Action Args
2012-01-10 18:56:52neologixsetrecipients: + neologix, pitrou, rosslagerwall
2012-01-10 18:56:52neologixsetmessageid: <1326221812.3.0.905477293867.issue13757@psf.upfronthosting.co.za>
2012-01-10 18:56:51neologixlinkissue13757 messages
2012-01-10 18:56:51neologixcreate