Message143536
Well, there's no os.fdopendir(); I think you're referring to fdlistdir(), which uses the C function fdopendir() internally. The DIR structure is not exposed to the Python caller at any point.
I did miss the whole opendir-returns-a-DIR-not-a-fd thing, hopefully that's my dumb thing of the day. This suggests opendir() would have to call dirfd() on your behalf.
Would it be safe to call close() on the fd returned from dirfd(opendir())? If not, I guess we'd need a special closedir() function, which would use the C functions fdopendir() then closedir() internally.
... or we could forget the whole thing, I guess. |
|
Date |
User |
Action |
Args |
2011-09-05 15:53:37 | larry | set | recipients:
+ larry, rosslagerwall |
2011-09-05 15:53:37 | larry | set | messageid: <1315238017.4.0.698737756123.issue12898@psf.upfronthosting.co.za> |
2011-09-05 15:53:36 | larry | link | issue12898 messages |
2011-09-05 15:53:36 | larry | create | |
|