Title: Difference in behaviour of PureWindowsPath in 3.12.0b2 with multiple slashes · Issue #105881 · python/cpython · GitHub
Open Graph Title: Difference in behaviour of PureWindowsPath in 3.12.0b2 with multiple slashes · Issue #105881 · python/cpython
X Title: Difference in behaviour of PureWindowsPath in 3.12.0b2 with multiple slashes · Issue #105881 · python/cpython
Description: Bug report I was trying to add Python3.12 beta 2 to the test suit of xonsh . The tests on Windows were failing because of the difference in behaviour of PureWindowsPath. This can be reproduced like this in Python 3.11 >>> from pathlib im...
Open Graph Description: Bug report I was trying to add Python3.12 beta 2 to the test suit of xonsh . The tests on Windows were failing because of the difference in behaviour of PureWindowsPath. This can be reproduced like...
X Description: Bug report I was trying to add Python3.12 beta 2 to the test suit of xonsh . The tests on Windows were failing because of the difference in behaviour of PureWindowsPath. This can be reproduced like...
Opengraph URL: https://github.com/python/cpython/issues/105881
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Difference in behaviour of PureWindowsPath in 3.12.0b2 with multiple slashes","articleBody":"\u003c!--\r\n If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not\r\n the right place to seek help. Consider the following options instead:\r\n\r\n - reading the Python tutorial: https://docs.python.org/3/tutorial/\r\n - posting in the \"Users\" category on discuss.python.org: https://discuss.python.org/c/users/7\r\n - emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list\r\n - searching our issue tracker (https://github.com/python/cpython/issues) to see if\r\n your problem has already been reported\r\n--\u003e\r\n\r\n# Bug report\r\n\r\nI was trying to add Python3.12 beta 2 to the test suit of [xonsh](https://github.com/xonsh/xonsh/pull/5156) . The tests on Windows were [failing](https://github.com/xonsh/xonsh/actions/runs/5281163680/jobs/9587052082) because of the difference in behaviour of PureWindowsPath. \r\n\r\nThis can be reproduced like this \r\n\r\nin Python 3.11\r\n\r\n```\r\n\u003e\u003e\u003e from pathlib import PurePosixPath, PureWindowsPath\r\n\u003e\u003e\u003e PurePosixPath(\"///tmp\")\r\nPurePosixPath('/tmp')\r\n\u003e\u003e\u003e PureWindowsPath(r\"\\\\\\tmp\")\r\nPureWindowsPath('/tmp')\r\n```\r\n\r\nbut the same in Python 3.12.0b2 would be giving different result\r\n```\r\nIn [1]: from pathlib import PurePosixPath, PureWindowsPath\r\nIn [2]: PurePosixPath(\"///tmp\")\r\nOut[2]: PurePosixPath('/tmp')\r\nIn [3]: PureWindowsPath(r\"\\\\\\tmp\")\r\nOut[3]: PureWindowsPath('///tmp')\r\n```\r\n\r\nI've checked the [changelog](https://docs.python.org/3.12/whatsnew/changelog.html#changelog) and this change of behaviour wasn't mentioned in it. \r\n\r\n# Your environment\r\n\r\n\u003c!-- Include as many relevant details as possible about the environment you experienced the bug in --\u003e\r\n\r\n- CPython versions tested on: 3.12.0b2\r\n- Operating system and architecture: Windows 64bit\r\n\r\n\u003c!--\r\nYou can freely edit this text. Remove any lines you believe are unnecessary.\r\n--\u003e\r\n","author":{"url":"https://github.com/jnoortheen","@type":"Person","name":"jnoortheen"},"datePublished":"2023-06-17T06:06:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/105881/cpython/issues/105881"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ce4ebb31-df2e-3daf-35ef-1f57c09734f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD58:2265AE:2490A6:32A4B2:696A7100 |
| html-safe-nonce | 53c99d042ef2261cc58db8519a2775b3c7807a4da9f8fb73eebb4334d6cda383 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDU4OjIyNjVBRToyNDkwQTY6MzJBNEIyOjY5NkE3MTAwIiwidmlzaXRvcl9pZCI6Ijg2Njg2MjIxOTk5NzIzMjc2ODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 408003d4a0c6bcc8dd37bd937b71e07d3b4f605bcafc7ffee4f2ca083108f55b |
| hovercard-subject-tag | issue:1761665504 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/105881/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a6cdb2ef09f52b6fdc0cdcea3990d5e9b50550c5fbd22fba8e424d55e0be3c7b/python/cpython/issues/105881 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a6cdb2ef09f52b6fdc0cdcea3990d5e9b50550c5fbd22fba8e424d55e0be3c7b/python/cpython/issues/105881 |
| og:image:alt | Bug report I was trying to add Python3.12 beta 2 to the test suit of xonsh . The tests on Windows were failing because of the difference in behaviour of PureWindowsPath. This can be reproduced like... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jnoortheen |
| hostname | github.com |
| expected-hostname | github.com |
| None | cfa223d62d272274e0b68350b4bd7741f3ca7498b8c4b8b1bc1e6deabbdbc09d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6a0b6893c221f98f607598e939299fdf5763435d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width