Message143522
With the recent spate of POSIX *at() functions added to os, we now have a bunch of places in the API that take directory fds. But afaict there's no way to get a directory fd in Python! The only calls to opendir() in the tree are internal, in os.listdir() and in the import machinery. (Though in practice most people will use AT_FDCWD anyway.)
I propose adding a new function, os.opendir(), the implementation to be much the same as (aka a hacked-up copy and paste of) os.unlink() in Modules/posixmodule.c. I'd be happy to contribute the patch. |
|
Date |
User |
Action |
Args |
2011-09-05 15:12:27 | larry | set | recipients:
+ larry |
2011-09-05 15:12:27 | larry | set | messageid: <1315235547.8.0.461411196791.issue12898@psf.upfronthosting.co.za> |
2011-09-05 15:11:27 | larry | link | issue12898 messages |
2011-09-05 15:11:26 | larry | create | |
|