[ python-Bugs-1193849 ] os.path.expanduser documentation wrt. empty $HOME
SourceForge.net
noreply at sourceforge.net
Sun Jun 5 14:29:08 CEST 2005
Bugs item #1193849, was opened at 2005-05-02 17:02
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1193849&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Wummel (calvin)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: os.path.expanduser documentation wrt. empty $HOME
Initial Comment:
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; print
os.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".
----------------------------------------------------------------------
>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-06-05 14:29
Message:
Logged In: YES
user_id=1188172
Attached a patch which fixes the docs. Okay to checkin?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1193849&group_id=5470
More information about the Python-bugs-list
mailing list