You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If $HOME is unset, an initial "~" should not be
expanded according to the documentation. But instead it
somehow is expanded, perhaps through the pwd module:
$ env -u HOME python -c "import os.path; printos.path.expanduser('~/foo')"
/home/calvin/foo
The result should be "~/foo" instead of "/home/calvin/foo".
I suggest adjusting the documentation to state the also
a single "~" is looked up in the pwd module, not only
"~user".
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: