[Python-Dev] Re: PEP 654: Exception Groups and except* [REPOST]

2021-04-28 Thread Nathaniel Smith
On Fri, Apr 23, 2021 at 4:08 AM Irit Katriel wrote: > > On Fri, Apr 23, 2021 at 9:22 AM Nathaniel Smith wrote: >> I'm not trying to filibuster here -- I really want some form of EGs to >> land. > > I'm very glad to hear that. It's been hard to know where you stand, because > you didn't even decl

[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

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

2021-04-28 Thread Barney Gale
There’s been a bit of discussion on the reliability of getting other users' home directories via os.path.expanduser(), mostly on issue42998 . In msg390503 , Serhiy Storchaka pointed out that ntpath only makes an educ