diff options
author | Barney Gale <barney.gale@gmail.com> | 2025-03-16 06:11:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-16 06:11:20 +0000 |
commit | 563ab5cefe98d3a4a8f86eb46ca5aeaeaa5b120b (patch) | |
tree | 452567cb55bb2adeedb338b7dc9fa67ba011979a /Lib/signal.py | |
parent | e82c2ca2a59235bc1965b259f4421635861e0470 (diff) | |
download | cpython-563ab5cefe98d3a4a8f86eb46ca5aeaeaa5b120b.tar.gz cpython-563ab5cefe98d3a4a8f86eb46ca5aeaeaa5b120b.zip |
GH-130614: pathlib ABCs: improve support for receiving path metadata (#131259)
In the private pathlib ABCs, replace `_WritablePath._write_info()` with
`_WritablePath._copy_from()`. This provides the target path object with
more control over the copying process, including support for querying and
setting metadata *before* the path is created.
Adjust `_ReadablePath.copy()` so that it forwards its keyword arguments to
`_WritablePath._copy_from()` of the target path object. This allows us to
remove the unimplemented *preserve_metadata* argument in the ABC method,
making it a `Path` exclusive.
Diffstat (limited to 'Lib/signal.py')
0 files changed, 0 insertions, 0 deletions