Message365283
This is one of a series of bug reports / PRs that lay the groundwork for making pathlib extensible. See here for detail: https://discuss.python.org/t/make-pathlib-extensible/3428
Currently `_Accessor.open()` is expected to function like `os.open()` and return a file descriptor. I'd suggest this interface is too low-level if our eventual aim is to allow users to implement their own accessor.
It would be better is `_Accessor.open()` is expected to function like `io.open()` and return a file object. That way, accessors don't need to deal with file descriptors at all, which is important if they're working with remote filesystems.
I'm planning to wait for bpo-39895 / gh-18838 to land before starting work on this. |
|
Date |
User |
Action |
Args |
2020-03-29 22:37:39 | barneygale | set | recipients:
+ barneygale |
2020-03-29 22:37:39 | barneygale | set | messageid: <1585521459.52.0.94031195769.issue40107@roundup.psfhosted.org> |
2020-03-29 22:37:39 | barneygale | link | issue40107 messages |
2020-03-29 22:37:39 | barneygale | create | |
|