This question is related to Python 3.12.
|
self._raw_path = self._flavour.join(*paths) |
This is the first occurrence of self._flavour in pathlib.py. I don't see where this object is set. I can't find the string self._flavour = somewhere in the repo. I'm confused.
Background:
I try to figuring out why pathlib._Flavour.parse_parts() (and the whole class) was removed from Python 3.11 to 3.12. I can not see this in the CHANGELOG. And I'm not skilled enough with git to find the related commit.
This question is related to Python 3.12.
cpython/Lib/pathlib.py
Line 319 in 278030a
This is the first occurrence of
self._flavourinpathlib.py. I don't see where this object is set. I can't find the stringself._flavour =somewhere in the repo. I'm confused.Background:
I try to figuring out why
pathlib._Flavour.parse_parts()(and the whole class) was removed from Python 3.11 to 3.12. I can not see this in the CHANGELOG. And I'm not skilled enough with git to find the related commit.