summaryrefslogtreecommitdiffstats
path: root/Python/pystrcmp.c
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2023-06-22 13:35:51 (GMT)
committerGitHub <noreply@github.com>2023-06-22 13:35:51 (GMT)
commita8006706f7d6e8825b90f1970beed7845d1d72ed (patch)
tree3926d14507d730ee20c402e78b6f5e567f0caf4e /Python/pystrcmp.c
parent04492cbc9aa45ac2c12d22083c406a0364c39f5b (diff)
downloadcpython-a8006706f7d6e8825b90f1970beed7845d1d72ed.zip
cpython-a8006706f7d6e8825b90f1970beed7845d1d72ed.tar.gz
cpython-a8006706f7d6e8825b90f1970beed7845d1d72ed.tar.bz2
GH-89812: Add `pathlib.UnsupportedOperation` (GH-105926)
This new exception type is raised instead of `NotImplementedError` when a path operation is not supported. It can be raised from `Path.readlink()`, `symlink_to()`, `hardlink_to()`, `owner()` and `group()`. In a future version of pathlib, it will be raised by `AbstractPath` for these methods and others, such as `AbstractPath.mkdir()` and `unlink()`.
Diffstat (limited to 'Python/pystrcmp.c')
0 files changed, 0 insertions, 0 deletions