[issue37255] Pathlib: Add an expandUserPath method or argument

2019-06-12 Thread Andrea Moro
Change by Andrea Moro : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue37255] Pathlib: Add an expandUserPath method or argument

2019-06-12 Thread Andrea Moro
Andrea Moro added the comment: I have completely missed it. Thanks for flagging it. -- ___ Python tracker ___ ___ Python-bugs-list

[issue37255] Pathlib: Add an expandUserPath method or argument

2019-06-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There is expanduser : https://docs.python.org/3/library/pathlib.html#pathlib.Path.expanduser. os.path.expanduser also accepts a path like object. Is this report different from these two functions? -- nosy: +xtreak ___

[issue37255] Pathlib: Add an expandUserPath method or argument

2019-06-12 Thread Andrea Moro
New submission from Andrea Moro : Assuming the given path contains a '~' character, it would be nice to have a function to expand the given path so any further calls to an .exists doesn't fail. A prototype of the function could be # Expand the home path in *ix based systems if any