diff options
author | Barney Gale <barney.gale@gmail.com> | 2023-05-05 19:04:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 19:04:53 (GMT) |
commit | d00d94214971621e6a3541425ee8c8072023ca1a (patch) | |
tree | e439827cd482073748827bb73c3a46132dee89e1 /Include/objimpl.h | |
parent | 1afe0e0320c6f19418d44d682ad95ba0c689c595 (diff) | |
download | cpython-d00d94214971621e6a3541425ee8c8072023ca1a.zip cpython-d00d94214971621e6a3541425ee8c8072023ca1a.tar.gz cpython-d00d94214971621e6a3541425ee8c8072023ca1a.tar.bz2 |
GH-100479: Add `pathlib.PurePath.with_segments()` (GH-103975)
Add `pathlib.PurePath.with_segments()`, which creates a path object from arguments. This method is called whenever a derivative path is created, such as from `pathlib.PurePath.parent`. Subclasses may override this method to share information between path objects.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Include/objimpl.h')
0 files changed, 0 insertions, 0 deletions