[Python-Dev] Re: expanduser('~other') reliability and future

2021-04-28 Thread Terry Reedy
On 4/28/2021 1:05 PM, Guido van Rossum wrote: On UNIX-oid platforms (e.g. BSD, Linux, Mac), ~user/ should be reasonably reliable, after all the shell does it. On Windows, only ~/ can be relied upon -- the rest is "best effort". I'd be okay with deprecating ~user/ on Windows, but on UNIX-oid it

[Python-Dev] Re: expanduser('~other') reliability and future

2021-04-28 Thread Antoine Pitrou
On Wed, 28 Apr 2021 10:05:32 -0700 Guido van Rossum wrote: > On UNIX-oid platforms (e.g. BSD, Linux, Mac), ~user/ should be reasonably > reliable, after all the shell does it. On Windows, only ~/ can be relied > upon -- the rest is "best effort". I'd be okay with deprecating ~user/ on > Windows, b

[Python-Dev] Re: expanduser('~other') reliability and future

2021-04-28 Thread Guido van Rossum
On UNIX-oid platforms (e.g. BSD, Linux, Mac), ~user/ should be reasonably reliable, after all the shell does it. On Windows, only ~/ can be relied upon -- the rest is "best effort". I'd be okay with deprecating ~user/ on Windows, but on UNIX-oid it should not be deprecated IMO. (Spoken as an old U

[Python-Dev] Re: expanduser('~other') reliability and future

2021-04-28 Thread Senthil Kumaran
On Wed, Apr 28, 2021 at 05:44:06PM +0100, Barney Gale wrote: > From a bit of googling, Python seems to be an outlier in having a function to > retrieve another user’s home directory. > Any views on this? Is expanduser(‘~other’) fixable and worth fixing? If not, > should we deprecate this functiona