Message217339
| Author |
antoine.pietri |
| Recipients |
Arfrever, Claudiu.Popa, antoine.pietri, fletom, pitrou, rominf, vajrasky, vstinner |
| Date |
2014年04月28日.03:42:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1398656568.18.0.433771805025.issue19776@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> I think that `absolute` method should call `expanduser` and `expandvars` (do you plan to include it?) automatically. This should be optional (via default arguments: `expanduser=True, expandvars=True`.
I think it shouldn't. (Or shouldn't be set to True by default anyway).
absolute() method resolves symlinks, and it would make no sense to expand tildes and vars, which are purely a "shell syntax".
. and .. are real things in the filesystem, ~ is just a notation commonly used (since it's in the SCL spec), but it's not *part* of the path, that's why you can totally have a valid ~ file.
Making absolute() expand tildes would be illogic, unintuitive and unpythonic.
(+1 for the .expanduser() patch though, I went here after searching for this feature in the docs). |
|