From: SourceForge.net <no...@so...> - 2008-01-25 20:33:37
|
Bugs item #1879935, was opened at 2008-01-25 20:31 Message generated for change (Comment added) made by billiejoex You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1879935&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: billiejoex (billiejoex) Assigned to: Nobody/Anonymous (nobody) Summary: cPython/Jython different os.path.isabs() behavior Initial Comment: On windows XP prof SP2: 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.path.isabs('/a') True >>> os.path <module 'ntpath' from 'C:\Python23\lib\ntpath.pyc'> >>> C:\dist>jython.bat Jython 2.3a0 on java1.6.0_04 Type "copyright", "credits" or "license" for more information. >>> import os >>> os.path.isabs('/a') False >>> os.path <module 'javapath' from 'C:\dist\Lib\javapath.py'> >>> ---------------------------------------------------------------------- >Comment By: billiejoex (billiejoex) Date: 2008-01-25 21:33 Message: Logged In: YES user_id=1357589 Originator: YES Another difference: os.path.isabs('\\') on cPython returns True while on Jython returns False. I guess there are other differences like these. Note: on Windows '\\' is an alias for the current drive letter. For example: if the current working directory is D:\Documents, os.path.realpath('\\') returns "D:\\" (which is obviously absolute). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1879935&group_id=12867 |