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

2021年4月28日 10:55:16 -0700

On 2021年4月28日 10:05:32 -0700
Guido van Rossum <[email protected]> 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 should not be deprecated IMO.
> 
> (Spoken as an old UNIX nerd who's currently using Windows 10.)
Agreed with Guido.
Best regards
Antoine.
> 
> On Wed, Apr 28, 2021 at 9:57 AM Senthil Kumaran <[email protected]> wrote:
> 
> > 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 functionality? Or something else? 
> >
> > +1 to deprecate this functionality. This does not seem to be common
> > usecase to
> > be present in stdlib, and reliablity across platform seems difficult.
> >
> > --
> > Senthil
> >
> > _______________________________________________
> > Python-Dev mailing list -- [email protected]
> > To unsubscribe send an email to [email protected]
> > https://mail.python.org/mailman3/lists/python-dev.python.org/
> > Message archived at
> > https://mail.python.org/archives/list/[email protected]/message/CGVRT4A7XUOEVWHZY3ZX32CABD7OKR2A/
> > Code of Conduct: http://python.org/psf/codeofconduct/
> > 
> 
> 
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/CVPSAHX2XJDX27I2PSASOTQF4MD6PX22/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to