Author terry.reedy
Recipients acdha, docs@python, terry.reedy, zaytsev
Date 2014-09-28.01:49:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411868948.17.0.98501292219.issue20164@psf.upfronthosting.co.za>
In-reply-to
Content
I think the doc should be considered correct and posixpath buggy.  The ntpath code checks for the existence of HOME and substitutes before returning the arg unchanged, as documented.

    if 'HOME' in os.environ:
        userhome = os.environ['HOME']
    elif 'USERPROFILE' in os.environ:
        userhome = os.environ['USERPROFILE']
    elif not 'HOMEPATH' in os.environ:
        return path
    <create userhome from HOMEDRIVE and HOMEPATH

--
The pwd doc already says " KeyError is raised if the entry asked for cannot be found.", so this is not an issue.
History
Date User Action Args
2014-09-28 01:49:08terry.reedysetrecipients: + terry.reedy, docs@python, acdha, zaytsev
2014-09-28 01:49:08terry.reedysetmessageid: <1411868948.17.0.98501292219.issue20164@psf.upfronthosting.co.za>
2014-09-28 01:49:08terry.reedylinkissue20164 messages
2014-09-28 01:49:07terry.reedycreate