You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pathlib ABCs: remove or namespace private attributes #127807
I see there's currently no distinction between pathlib-internal attribute names and names that are free for third-party subclasses to use.
Should there be a stronger namespace for these, like _pathlib_sep, _pathlib_globber & _pathlib_stack?
Or should _sep & co. be documented so users know to not override them?
PurePathBase and PathBase have ~10 private attributes for facilitating copying, ~3 for matching and globbing, and ~3 more for miscellaneous purposes. We should try to eliminate as many as possible, and namespace the rest (e.g. under _pathlib_)
Activity
pythonGH-127807: pathlib ABCs: move private copying methods to dedica…
pythonGH-127807: pathlib ABCs: move private copying methods to dedica…
pythonGH-127807: pathlib ABCs: remove a few private attributes
pythonGH-127807: pathlib ABCs: remove `PathBase._unsupported_msg()`
pythonGH-127807: pathlib ABCs: remove `PathBase._unsupported_msg()`
pythonGH-127807: pathlib ABCs: remove `PathBase._unsupported_msg()`
GH-127807: pathlib ABCs: remove `PathBase._unsupported_msg()` (#127855)
pythonGH-127807: pathlib ABCs: remove `PurePathBase._raw_paths`
Merge branch 'main' into pythongh-127807-raw-paths
GH-127807: pathlib ABCs: remove `PurePathBase._raw_paths` (#127883)
Merge branch 'main' into pythongh-127807-misc
GH-127807: pathlib ABCs: remove a few private attributes (#127851)
Merge branch 'main' into pythongh-127807-copy
GH-127807: pathlib ABCs: move private copying methods to dedicated cl…
barneygale commentedon Dec 22, 2024
This is done, with two exceptions:
PathBase._scandir()will be removed as part of Exposeos.DirEntryobjects from pathlib #125413PathBase._delete()will be made public some time, hopefully.pythonGH-127807: pathlib ABCs: remove `PurePathBase._raw_paths` (pyth…
pythonGH-127807: pathlib ABCs: remove a few private attributes (pytho…
pythonGH-127807: pathlib ABCs: move private copying methods to dedica…
pythonGH-127807: pathlib ABCs: remove `PathBase._unsupported_msg()` (p…
pythonGH-127807: pathlib ABCs: remove `PurePathBase._raw_paths` (pyth…
pythonGH-127807: pathlib ABCs: remove a few private attributes (pytho…
pythonGH-127807: pathlib ABCs: move private copying methods to dedica…