Message217339
> 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). |
|
Date |
User |
Action |
Args |
2014-04-28 03:42:48 | antoine.pietri | set | recipients:
+ antoine.pietri, pitrou, vstinner, Arfrever, Claudiu.Popa, vajrasky, fletom, rominf |
2014-04-28 03:42:48 | antoine.pietri | set | messageid: <1398656568.18.0.433771805025.issue19776@psf.upfronthosting.co.za> |
2014-04-28 03:42:48 | antoine.pietri | link | issue19776 messages |
2014-04-28 03:42:47 | antoine.pietri | create | |
|