On 2/9/22 6:59 AM, Barney Gale wrote: > Over the last couple of years I've been tidying up the pathlib internals, with a view > towards adding an AbstractPath class to the hierarchy. Users would be able to subclass > AbstractPath to implement other kinds of filesystems: s3, google cloud storage, pandas, > ftp, git, zip and tar files, etc. By implementing some abstract methods (stat(), > iterdir(), open(), etc) they'd benefit from a number of derived methods (is_dir(), > glob(), read_text(), etc).
Seems like a reasonable idea. > I've now submitted a PR that adds an initial underscore-prefixed implementation of this class: Why the iniitial underscore? What could change between now and the future? -- ~Ethan~ _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/4KPJJEYPOYYDGS2FOL7ZE46XKX2USEZI/ Code of Conduct: http://python.org/psf/codeofconduct/