[IronPython] Bugs: os.environ and os.path.exists/os.stat

Dino Viehland dinov at exchange.microsoft.com
Tue Feb 21 22:01:44 CET 2006


Thanks for the bug reports - I've got these filed and we'll get both of these fixed for Beta 4.

Do you want to help develop Dynamic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Neville Bagnall
Sent: Tuesday, February 21, 2006 11:54 AM
To: users at lists.ironpython.com
Subject: [IronPython] Bugs: os.environ and os.path.exists/os.stat

I've found these two cases of incorrect behaviour with Beta 3.

os.environ is not populated:

>>> import nt
>>> nt.environ
Traceback (most recent call last):
   File , line 0, in input##414
AttributeError: 'module' object has no attribute 'environ'
>>> import os
>>> os.environ
{}

os.stat returns fails to raise an exception for non-existent files,  
consequently os.path.exists always return True:

>>> import System.IO
>>> System.IO.Directory.Exists('c:/path')
False
>>> System.IO.Directory.GetCreationTime('c:/path')
01/01/1601 00:00:00
>>> import os
>>> os.path.exists('c:/path')
True

Regards,
Neville.
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list