Message151023
| 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: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 |
|