[IronPython] BUG? IOError: Could not find file

HEMMI, Shigeru textdirected at gmail.com
Sat Feb 24 01:49:06 CET 2007

Dear IronPython team,

Such a coding pattern which inherits from 'file' class is my personal favourite.
I believe this bug is a bug even in Windows within .NET.
I hope IPy team to fix this bug in near future.

Thanks in advance.

2007/2/3, HEMMI, Shigeru <textdirected at gmail.com>:
> Hello, IronPython Team,
> On my MAC OS X (Panther) + mono + IronPython, I encounterd a bug for
> the program.
> class TESTINGwrite(file):
>     def __init__(self, fname):
>         file.__init__(self,fname,"w",1)
>     def writesomething(self):
>         self.write("Hi there\n")
> if __name__=='__main__':
>     x = TESTINGwrite("testing_TMP.txt")
>     x.writesomething()
>     x.close()
> In IronPython, this code generats errer(see below), while CPython runs properly.
> I am guessing this is a bug.
> $ ipy IOErrorCouldNoFindFile.py
> Traceback (most recent call last):
>   File IOErrorCouldNoFindFile, line unknown, in Initialize
>   File mscorlib, line unknown, in .ctor
>   File mscorlib, line unknown, in .ctor
> IOError: Could not find file "testing_TMP.txt".
> regards,

More information about the Ironpython-users mailing list