Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-100502: Add pathlib.PurePath.pathmod attribute #106533

Merged
merged 7 commits into from
Jul 19, 2023

Commits on Jul 7, 2023

  1. pythonGH-100502: Add pathlib.PurePath.flavour attribute

    This instance attribute stores the implementation of `os.path` used for
    low-level path operations: either `posixpath` or `ntpath`.
    
    The `PurePath` and `Path` initialisers gain a *flavour* keyword-only
    argument. This argument is not available in the Posix- and Windows-specific
    subclasses, and as the `PurePath` and `Path` classes are not directly
    instantiable, it is available therefore only in user subclasses of
    `PurePath` and `Path`. Such subclasses may determine their flavour in
    `__init__()` and supply the flavour to `super()`.
    barneygale committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    be0785f View commit details
    Browse the repository at this point in the history
  2. Fix docs, Windows tests

    barneygale committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    3df2f86 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2023

  1. flavour --> pathmod

    barneygale committed Jul 9, 2023
    Configuration menu
    Copy the full SHA
    64e2a1c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8fd23bc View commit details
    Browse the repository at this point in the history
  3. Fix docs

    barneygale committed Jul 9, 2023
    Configuration menu
    Copy the full SHA
    3153f9e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f383cf9 View commit details
    Browse the repository at this point in the history
  5. Clarify docs a little

    barneygale committed Jul 9, 2023
    Configuration menu
    Copy the full SHA
    f0ae8e3 View commit details
    Browse the repository at this point in the history