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()`.
B
Barney Gale committed
a8006706f7d6e8825b90f1970beed7845d1d72ed
Parent: 04492cb
Committed by GitHub <noreply@github.com>
on 6/22/2023, 1:35:51 PM