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-110109: Churn pathlib.PurePath methods #112012

Merged
merged 2 commits into from
Nov 17, 2023

Commits on Nov 13, 2023

  1. pythonGH-110109: Churn pathlib.PurePath methods

    Re-arrange `pathlib.PurePath` methods in source code. No other changes.
    
    The `PurePath` implementations of certain special methods, such as
    `__eq__()` and `__hash__()`, are not usually applicable to user subclasses
    of `_PathBase`. To facilitate their removal, another patch will split the
    `PurePath` class into `_PurePathBase` and `PurePath`, with the latter
    providing these special methods.
    
    This patch prepares the ground for splitting `PurePath`. It's similar to
    e8d77b0, which preceded splitting `Path`. By churning the methods here,
    subsequent patches will be easier to review and less likely to break
    things.
    barneygale committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    0f1daa2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7559ca5 View commit details
    Browse the repository at this point in the history