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 strank
Recipients markon, ronaldoussoren, strank, wrstlprmpft
Date 2009-10-18.10:27:26
SpamBayes Score 3.4847403e-08
Marked as misclassified No
Message-id <1255861648.92.0.506185700135.issue1646838@psf.upfronthosting.co.za>
In-reply-to
Content
I agree with the 'test needed' stage, but for that, the intended
behaviour should be decided on first. A quick test for checking current
behaviour::

  pythonX.Y -c 'import os; p = os.path; print (os.environ["HOME"],
p.realpath("~"), p.expanduser("~"), p.normpath("~"))'

Run both, with and without HOME set (or set to something unusual).

Current result on Linux for both 2.5 and 2.6::

  ('/home/rank', '/home/rank/~', '/home/rank', '~')

on Mac OS for 2.5, 2.6 and 3.1::

  ('/Users/rank', '/Users/rank/~', '/Users/rank', '~')

(for 3.1 it's not a tuple of course).

Cannot test on Windows at the moment, but I think there's already
something wrong going on here :-).

Adding Macintosh and tested python version tags (there's no Unix tag?).

cheers
History
Date User Action Args
2009-10-18 10:27:29stranksetrecipients: + strank, ronaldoussoren, wrstlprmpft, markon
2009-10-18 10:27:28stranksetmessageid: <1255861648.92.0.506185700135.issue1646838@psf.upfronthosting.co.za>
2009-10-18 10:27:27stranklinkissue1646838 messages
2009-10-18 10:27:26strankcreate