FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-24132: refactor pathlib to allow easy subclassing by ypsah · Pull Request #6248 · python/cpython · GitHub

/ cpython Public

bpo-24132: refactor pathlib to allow easy subclassing - #6248

Closed
ypsah wants to merge 1 commit into
python:masterfrom
ypsah:master
Closed

bpo-24132: refactor pathlib to allow easy subclassing#6248
ypsah wants to merge 1 commit into
python:masterfrom
ypsah:master

Conversation

ypsah commented Mar 26, 2018
edited
Loading

Copy link
Copy Markdown

PurePath and Path are now just variables pointing at the
corresponding classes (resp. PurePosixPath or PureWindowsPath, and
PosixPath or WindowsPath) depending on the platform running the code.

https://bugs.python.org/issue24132

Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

`PurePath` and `Path` are now just variables pointing at the
corresponding classes (resp. PurePosixPath or PureWindowsPath, and
PosixPath or WindowsPath) depending on the platform running the code.

Copy link
Copy Markdown
Member

Thanks for the PR, but closing as the CLA has not been signed within the last month. If you do decide to sign the CLA we can re-open this PR.

Comment thread Lib/pathlib.py
class _PathParents(Sequence):
"""This object provides sesquence-like access to the logical ancestors
of a path. Don't try to construt it yourself."""
___slots__ = ('pathcls', '_drv', '_root', '_parts')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

probably a typo but you have 3 leading _ ..

projetmbc mannequin mentioned this pull request Jun 21, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL