Message151023
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. |
|
Date |
User |
Action |
Args |
2012-01-10 18:56:52 | neologix | set | recipients:
+ neologix, pitrou, rosslagerwall |
2012-01-10 18:56:52 | neologix | set | messageid: <1326221812.3.0.905477293867.issue13757@psf.upfronthosting.co.za> |
2012-01-10 18:56:51 | neologix | link | issue13757 messages |
2012-01-10 18:56:51 | neologix | create | |
|