Message142560
Right now it is painful to integrate openat() with the normal IO classes. You have to figure out the low-level flags yourself (i.e. replicate the logic and error handling from the FileIO constructor), then replicate the open() logic yourself (because you want to set the name attribute on the FileIO object before wrapping it).
Therefore it would be nice if the FileIO constructor and the open() function supported openat natively. I see two possibilities:
- allow a (dirfd, name) tuple for the first "file" argument
- allow an optional dirfd argument at the end of the arglist |
|
Date |
User |
Action |
Args |
2011-08-20 21:00:03 | pitrou | set | recipients:
+ pitrou, vstinner, neologix, rosslagerwall |
2011-08-20 21:00:02 | pitrou | set | messageid: <1313874003.0.0.755289779326.issue12797@psf.upfronthosting.co.za> |
2011-08-20 21:00:02 | pitrou | link | issue12797 messages |
2011-08-20 21:00:02 | pitrou | create | |
|