[issue39659] pathlib calls `os.getcwd()` without using accessor

Barney Gale report at bugs.python.org
Mon Feb 17 16:41:00 EST 2020


Barney Gale <barney.gale at gmail.com> added the comment:

Those methods are non-pure, i.e. part of `Path` but not `PurePath`. Only impure paths have accessors. The `_Accessor` docstring says: "an accessor implements a particular (system-specific or not) way of accessing paths on the filesystem". This abstraction is pretty pointless if covers `os.readlink()` but not `os.getcwd()`!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39659>
_______________________________________


More information about the Python-bugs-list mailing list