Message390397
Under-the-hood functionality in pathlib is divided between:
- The 'flavour', which implements path syntax (separators, casefolding, etc)
- The 'accessor', which accesses the local (file)system.
The '_WindowsFlavour/_PosixFlavour.resolve()' function is misplaced, as it requires OS calls such as `os.getcwd()`, `os.readlink()`, and `nt._getfinalpathname()`. While the implementation *does* differ across Windows and POSIX, it's still properly part of the accessor interface, and not the flavour interface.
In preparation for addressing bpo-24132 I'd like to get these interfaces really tidy. Once bpo-39899 is fixed, this will be the last remaining flavour method that does accessor-y things. |
|
Date |
User |
Action |
Args |
2021-04-07 02:32:48 | barneygale | set | recipients:
+ barneygale |
2021-04-07 02:32:48 | barneygale | set | messageid: <1617762768.57.0.0406169855145.issue43757@roundup.psfhosted.org> |
2021-04-07 02:32:48 | barneygale | link | issue43757 messages |
2021-04-07 02:32:47 | barneygale | create | |
|