This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
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.
Date User Action Args
2014-09-28 01:49:08terry.reedysetrecipients: + terry.reedy, docs@python, acdha, zaytsev
2014-09-28 01:49:08terry.reedysetmessageid: <>
2014-09-28 01:49:08terry.reedylinkissue20164 messages
2014-09-28 01:49:07terry.reedycreate