Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
3.12.7
Python 3.12.7 (main, Oct 8 2024, 00:39:14) [GCC 11.4.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import pathlib; pathlib.PureWindowsPath("C:\\A") / pathlib.PurePosixPath("/foo/C:\\B").relative_to("/")PureWindowsPath('C:/B')3.13.0rc3
Python 3.13.0rc3 (main, Oct 7 2024, 23:18:57) [GCC 11.4.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import pathlib; pathlib.PureWindowsPath("C:\\A") / pathlib.PurePosixPath("/foo/C:\\B").relative_to("/")PureWindowsPath('C:/A/foo/C:/B')Not sure if it is a bug, or a fixed behaviour
CPython versions tested on:
3.12, 3.13
Operating systems tested on:
Linux