Re-hello, Thomas Heller wrote:
> On 7/11/07, Amaury Forgeot d'Arc wrote: >> Thomas Heller wrote: >> > I would love to look into these, but I prefer debugging on Windows. >> > However, the windows build does not work because the _fileio builtin >> > module is missing from config.c. Again, this is not so easy to fix, >> > because the ftruncate function does not exist on Windows. >> >> In fileobject.c, there is a replacement for ftruncate. See the code >> around the call to SetEndOfFile(). >> >> I'll try to provide a patch later today.Awaiting your patch ;-).
Ok, here it is; shamelessly copied from fileobject.c. BTW, what is the status of this fileobject? open() doesn't seem to use it anymore. Will file() be removed at some point? Now test_fileio passes on Windows, with the exception of testAbles(): since c:\dev is an existing directory on my machine, /dev/tty is a regular file and is seekable... Maybe skip this test on win32? I have a couple of other corrections, found by randomly playing with the tests functions... shall I post the corrections here as well? -- Amaury Forgeot d'Arc
fileio-2.diff
Description: Binary data
_______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
