This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mond Wan
Recipients Mond Wan, koobs, ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware
Date 2020-07-31.11:27:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1596194878.5.0.558900436.issue41448@roundup.psfhosted.org>
In-reply-to
Content
Moreover, output from PurePosixPath.as_posix() is not that straightforward?

Please take a look below example from python3.6 + linux + docker

```
>>> winPath = r'\workspace\xxx\test_fixture\user-restore-success.zip'

>>> pWIN = pathlib.PureWindowsPath(winPath)
>>> pppFromWinPath = pathlib.PurePosixPath(winPath)
>>> pppFromPwp = pathlib.PurePosixPath(pWIN)

>>> pppFromWinPath.as_posix()
'\\workspace\\xxx\\test_fixture\\user-restore-success.zip'
>>> pppFromPwp.as_posix()
'\\/workspace/xxx/test_fixture/user-restore-success.zip'
```

* Construction PurePosixPath from rawString, `as_posix()` gives '\\workspace\\xxx\\test_fixture\\user-restore-success.zip'
* Construction PurePosixPath from PureWindowsPath, `as_posix()` gives '\\/workspace/xxx/test_fixture/user-restore-success.zip'
History
Date User Action Args
2020-07-31 11:27:58Mond Wansetrecipients: + Mond Wan, paul.moore, ronaldoussoren, tim.golden, ned.deily, zach.ware, koobs, steve.dower
2020-07-31 11:27:58Mond Wansetmessageid: <1596194878.5.0.558900436.issue41448@roundup.psfhosted.org>
2020-07-31 11:27:58Mond Wanlinkissue41448 messages
2020-07-31 11:27:58Mond Wancreate