[IronPython] A pseudobug in standard library usage
Michael Foord
michael.foord at resolversystems.com
Fri Jun 1 16:12:54 CEST 2007
Hello all,
More fun with None, this time with the standard library - specifically
with 'os.path.abspath':
CPython:
>>> import os
>>> os.path.abspath(None)
'C:\\Program Files\\Python24'
>>>
IronPython:
>>> import os
>>> os.path.abspath(None)
Traceback (most recent call last):
File , line 0, in <stdin>##89
File C:\Program Files\Python24\Lib\ntpath.py, line 491, in abspath
File C:\Program Files\Python24\Lib\ntpath.py, line 53, in isabs
File C:\Program Files\Python24\Lib\ntpath.py, line 119, in splitdrive
AttributeError: 'NoneType' object has no attribute '__getitem__'
>>>
Thanks
Michael
--
Michael Foord
Resolver Systems
michael.foord at resolversystems.com
Office address: 17a Clerkenwell Road, London EC1M 5RD, UK
Registered address: 843 Finchley Road, London NW11 8NA, UK
Resolver Systems Limited is registered in England and Wales as company number 5467329.
VAT No. GB 893 5643 79
More information about the Ironpython-users
mailing list