Re: [IronPython] Seek fails

2006-07-25 Thread Haibo Luo
: [IronPython] Seek fails   I need to get file size. Here’s my Python code: fd = open(“c:\\parser.py”, ‘r’); fd.seek(0, 2); size =fd.tell();   Python returns the correct file size but IronPython returns 0. I had a look at the source code and I would say a bug exists. Does anyone confirm

[IronPython] Seek fails

2006-07-25 Thread Benoist JAMIN
I need to get file size. Here’s my Python code: fd = open(“c:\\parser.py”, ‘r’); fd.seek(0, 2); size =fd.tell();   Python returns the correct file size but IronPython returns 0. I had a look at the source code and I would say a bug exists. Does anyone confirm? __