In pathlib, path.root gives you the path root, i.e. the middle element from os.path.splitroot(). This is either the empty string, a forward slash, a backward slash (Windows only), or two forward slashes (Posix only).
In zipp, path.root points to the archive via a name cache. Perhaps it could be renamed to something that doesn't conflict?
In pathlib,
path.rootgives you the path root, i.e. the middle element fromos.path.splitroot(). This is either the empty string, a forward slash, a backward slash (Windows only), or two forward slashes (Posix only).In zipp,
path.rootpoints to the archive via a name cache. Perhaps it could be renamed to something that doesn't conflict?