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 wouyang
Recipients wouyang
Date 2018-11-10.00:15:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541808957.5.0.788709270274.issue35205@psf.upfronthosting.co.za>
In-reply-to
Content
The statement "os.path.realpath('C:\\Users\\')" returns different results between 3.6.6 and 3.6.7 (and between 3.7.0 and 3.7.1) on Windows.
With python 3.6.6 and 3.7.0 I got 'C:\\Users'.
With python 3.6.7 and 3.7.1 I got 'C:\\Users\\'.
Note the extra trailing backslash with python 3.6.7 and 3.7.1.

On Linux the behavior is consistent where the trailing slash in the input will be remove from the output: os.path.realpath('/home/') --> '/home'.

I think we should keep the behavior of removing trailing backslash on Windows.

Thanks.
History
Date User Action Args
2018-11-10 00:15:57wouyangsetrecipients: + wouyang
2018-11-10 00:15:57wouyangsetmessageid: <1541808957.5.0.788709270274.issue35205@psf.upfronthosting.co.za>
2018-11-10 00:15:57wouyanglinkissue35205 messages
2018-11-10 00:15:57wouyangcreate