Message226429
| Author |
pitrou |
| Recipients |
akima, eryksun, pitrou, steve.dower |
| Date |
2014年09月05日.16:52:14 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1409935934.46.0.712030389339.issue22302@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Under Windows, pathlib's "absolute" means a fully qualified path as defined in http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx
>>> PureWindowsPath("c:").is_absolute()
False
>>> PureWindowsPath("/").is_absolute()
False
>>> PureWindowsPath("c:/").is_absolute()
True
The fact that "//server" isn't considered absolute is a bug in pathlib, since "//server/" is:
>>> PureWindowsPath("//foo").is_absolute()
False
>>> PureWindowsPath("//foo/").is_absolute()
True
I agree that it's not really important, since both aren't actual paths (in the sense that they may not point to anything, AFAIK). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年09月05日 16:52:14 | pitrou | set | recipients:
+ pitrou, eryksun, steve.dower, akima |
| 2014年09月05日 16:52:14 | pitrou | set | messageid: <1409935934.46.0.712030389339.issue22302@psf.upfronthosting.co.za> |
| 2014年09月05日 16:52:14 | pitrou | link | issue22302 messages |
| 2014年09月05日 16:52:14 | pitrou | create |
|