Skip to content

pathlib: Where does "self._flavour" comes from? (3.11 to 3.12 migration) #104921

Closed as not planned
@buhtz

Description

@buhtz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixespendingThe issue will be closed if no feedback is providedstdlibPython modules in the Lib dirtopic-pathlib

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions