Issue1879984

classification
Title: cPython/Jython different os.path.realpath() behavior
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: billiejoex, pjenvey
Priority: normal Keywords:

Created on 2008-01-25.20:41:21 by billiejoex, last changed 2008-06-09.13:29:20 by billiejoex.

Messages
msg2066 (view) Author: Giampaolo Rodola' (billiejoex) Date: 2008-01-25.20:41:21
On Windows "\\" is an alias for the current drive letter. For example: if the current working directory is D:\Documents, os.path.realpath("\\") on CPython correctly returns "D:\\".
This doesn't happen on Jython:


C:\Python23>python.exe
Python 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getcwd()
'C:\\dist'
>>> os.path.realpath('\\')
'C:\\'
>>>


C:\dist>jython.bat
Jython 2.3a0 on java1.6.0_04
Type "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getcwd()
'C:\\dist'
>>> os.path.realpath('\\')
'C:\\dist'
>>>
msg3166 (view) Author: Giampaolo Rodola' (billiejoex) Date: 2008-04-28.14:10:43
Any news about this issue?
I'm not aware of it since I'm going to ask: in this case is Jython
supposed to reflect the same behavior as cPython or not?
msg3237 (view) Author: Philip Jenvey (pjenvey) Date: 2008-06-08.00:04:02
Like #1879989 -- definitely a bug, and should be fixed now. thanks
msg3264 (view) Author: Giampaolo Rodola' (billiejoex) Date: 2008-06-09.13:29:20
I tried the most updated Jython version taken from the current trunk and
it seems the problem is still there.
Please reopen this issue.
History
Date User Action Args
2008-06-09 13:29:20billiejoexsetmessages: + msg3264
2008-06-08 00:04:02pjenveysetstatus: open -> closed
resolution: fixed
messages: + msg3237
nosy: + pjenvey
2008-04-28 14:10:43billiejoexsetmessages: + msg3166
2008-01-25 20:41:21billiejoexcreate