[IronPython] Seek fails

Haibo Luo haiboluo at exchange.microsoft.com
Tue Jul 25 20:07:11 CEST 2006

Thanks for reporting this. This has been fixed in recent build. You may go to our codeplex site and download the source.

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Benoist JAMIN
Sent: Saturday, July 22, 2006 1:51 PM
To: users at lists.ironpython.com
Subject: [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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060725/8758eff6/attachment.html>

More information about the Ironpython-users mailing list