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-89812: Churn pathlib.Path methods #104243

Merged

Commits on May 6, 2023

  1. pythonGH-89812: Churn pathlib.Path methods

    Re-arrange `pathlib.Path` methods in source code. No other changes.
    
    The methods are arranged as follows:
    
    1. `stat()` and dependants (`exists()`, `is_dir()`, etc)
    2. `open()` and dependants (`read_text()`, `write_bytes()`, etc)
    3. `iterdir()` and dependants (`glob()`, `walk()`, etc)
    4. All other `Path` methods
    
    This patch prepares the ground for a new `_AbstractPath` class, which will
    support the methods in groups 1, 2 and 3 above. By churning the methods
    here, subsequent patches will be easier to review and less likely to break
    things.
    barneygale committed May 6, 2023
    Configuration menu
    Copy the full SHA
    7d47e82 View commit details
    Browse the repository at this point in the history
  2. Re-insert removed newline

    barneygale committed May 6, 2023
    Configuration menu
    Copy the full SHA
    25fb112 View commit details
    Browse the repository at this point in the history