Uh oh!
There was an error while loading. Please reload this page.
bpo-24132: refactor pathlib to allow easy subclassing - #6248
Conversation
the-knights-who-say-ni
commented
Mar 26, 2018
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.
brettcannon
commented
Mar 26, 2019
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. |
| 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') |
There was a problem hiding this comment.
probably a typo but you have 3 leading _ ..
PurePathandPathare now just variables pointing at thecorresponding classes (resp. PurePosixPath or PureWindowsPath, and
PosixPath or WindowsPath) depending on the platform running the code.
https://bugs.python.org/issue24132