[Python-ideas] proposal: os.path.joinuser()
Tarek Ziadé
tarek at ziade.org
Tue Sep 23 14:37:30 CEST 2014
Le 23/09/14 14:32, Tarek Ziadé a écrit :
[...]
> ~ is a Unix notion I think, and since expanduser() works under
Windows, I don't think it's that intuitive and explicit.
>
> Unless we'd change it so we omit "~" =>
>
> e.g. os.path.expanduser() and os.path.expanduser('specificuser')
I would even say that the api name "expanduser" is redundant with the
fact that you absolutely need to pass a '~' as a first char
if you want it to do something at all.
The more I think about it, the more I find it unintuitive
More information about the Python-ideas
mailing list