The builtin module "nt" has no method called "_getfullpathname", which the stdlib uses to detect if the OS is Windows (that's what the comment says). I don't know why the library writer didn't check for sys.platform. I think that running CPython on Linux will result in an exception<br><br>There are two issues here: IronPython work item & CPython stdlib bug<br><br><b><i>Dave Fugate <dfugate@microsoft.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Thanks Michael! This has been filed as CodePlex Work Item #10710 (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=10710).<br><br>-----Original Message-----<br>From: users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com] On Behalf Of Michael Foord<br>Sent: Friday, June 01, 2007 7:13 AM<br>To: Discussion of IronPython<br>Subject: [IronPython] A pseudobug in standard library usage<br><br>Hello
all,<br><br>More fun with None, this time with the standard library - specifically<br>with 'os.path.abspath':<br><br>CPython:<br><br> >>> import os<br> >>> os.path.abspath(None)<br>'C:\\Program Files\\Python24'<br> >>><br><br>IronPython:<br> >>> import os<br> >>> os.path.abspath(None)<br>Traceback (most recent call last):<br> File , line 0, in <stdin>##89<br> File C:\Program Files\Python24\Lib\ntpath.py, line 491, in abspath<br> File C:\Program Files\Python24\Lib\ntpath.py, line 53, in isabs<br> File C:\Program Files\Python24\Lib\ntpath.py, line 119, in splitdrive<br>AttributeError: 'NoneType' object has no attribute '__getitem__'<br> >>><br><br>Thanks<br><br>Michael<br><br>--<br>Michael Foord<br>Resolver Systems<br>michael.foord@resolversystems.com<br><br>Office address: 17a Clerkenwell Road, London EC1M 5RD, UK<br>Registered address: 843 Finchley Road, London NW11 8NA, UK<br><br>Resolver Systems Limited is
registered in England and Wales as company number 5467329.<br>VAT No. GB 893 5643 79<br><br>_______________________________________________<br>users mailing list<br>users@lists.ironpython.com<br>http://lists.ironpython.com/listinfo.cgi/users-ironpython.com<br>_______________________________________________<br>users mailing list<br>users@lists.ironpython.com<br>http://lists.ironpython.com/listinfo.cgi/users-ironpython.com<br></stdin></blockquote><br><BR><BR>Mohammad Tayseer<br><a href="http://spellcoder.com/blogs/tayseer">http://spellcoder.com/blogs/tayseer</a><br><p> 
<hr size=1>8:00? 8:25? 8:40? <a href="
http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news"> Find a flick</a> in no time<br> with the<a href="
http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news">Yahoo! Search movie showtime shortcut.</a>