I'm trying to solve a jython-related issue and I discovered a
different behavior affecting os.path.isabs between CPython and 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.
True>>import os
os.path.isabs('/a')
True>>os.path.isabs('/')
<module 'ntpath' from 'C:\Python23\lib\ntpath.pyc'>>>os.path
>>>
C:\dist>jython.bat
Jython 2.3a0 on java1.6.0_04
Type "copyright", "credits" or "license" for more information.
False>>import os
os.path.isabs('/a')
False>>os.path.isabs('/')
<module 'javapath' from 'C:\dist\Lib\javapath.py'>>>os.path
>>>
Is there a reason why "/" is considered an absolute pathname by
CPython?