Author barneygale
Recipients barneygale
Date 2020-03-29.22:37:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585521459.52.0.94031195769.issue40107@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-03-29 22:37:39barneygalesetrecipients: + barneygale
2020-03-29 22:37:39barneygalesetmessageid: <1585521459.52.0.94031195769.issue40107@roundup.psfhosted.org>
2020-03-29 22:37:39barneygalelinkissue40107 messages
2020-03-29 22:37:39barneygalecreate