Bug report
Bug description:
Under Linux, a leading /
in a string results in a funny situation:
>>> p = Path("/home/someone")
>>> l = p / 'b' / 'test'
>>> print(l)
/home/someone/b/test
>>> l = p / 'b' / '/test'
>>> print(l)
/test
This may result in an unintended access relative to the root of a file system.
CPython versions tested on:
3.12
Operating systems tested on:
Linux