Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

AFAIK you can set arbitrary path as user home directory. So home directories of 
different users can even not be on the same disk, and the last component of the 
path can be different from the user name.

os.path.expanduser() has many flaws, and it just "guess" the home directory for 
other users. It is difficult to fix os.path.expanduser() due to backward 
compatibility, but we should do better in pathlib from start.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39899>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to