[12:25] $python Python 2.3.3 (#1, Dec 22 2003, 11:56:28) [GCC 3.3.1 (cygming special)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> from os import tmpfile >>> f = tmpfile() >>> f.seek(0) Traceback (most recent call last): File "", line 1, in ? IOError: [Errno 29] Illegal seek >>>
Logged In: YES user_id=86216 Hmm...was someone looking over my shoulder? Guess what I was investigating before I broke for New Years? $ python /usr/lib/python2.3/test/regrtest.py -l test_os test_os test test_os failed -- Traceback (most recent call last): File "/tmp/python.280/usr/lib/python2.3/test/test_os.py", line 50, in test_tmpfile IOError: [Errno 29] Illegal seek The good news is this problem is fixed in Cygwin CVS: http://cygwin.com/ml/cygwin-cvs/2003-q4/msg00076.html The bad news is I must rebuild against the next official Cygwin release (i.e. 1.5.6) before users can get this fix. Just dropping in the latest Cygwin snapshot will not work, because Cygwin's 64-bit I/O magic is resolved at link time not runtime. I will release a new Cygwin Python package ASAP after Cygwin 1.5.6 is released. BTW, doesn't it *always* work on Linux! :,)
Logged In: YES user_id=86216 First Cygwin was unstable, then I became unstable... :,) Cygwin became stable (enough) again with version 1.5.9. Unfortunately, it was released right when I was switching jobs. Thanks for your patience.