Eryk Sun <[email protected]> added the comment:
Only Path.expanduser() special cases tilde as a POSIX shell would. Otherwise
"~" is not a reserved filename character in POSIX. Path('~') is a file named
"~" that's relative to the current working directory. By coincidence the
working directory is the user's home directory in your example.
----------
nosy: +eryksun
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue38246>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com