Issue 1603412: f=open fails with TypeError (original) (raw)

I've found that Python 2.5 halts, giving a TypeError, when opening a file to write to. This is the error (path is shortened for compactness):

Traceback (most recent call last): File "C:...\BatchGen.py", line 32, in f=open('ImGen.bat', 'w') TypeError: an integer is required

I noticed that calling an external command via os.system() would always make the error occur, but now it is happening all the time. I've tried this on two machines, both running Windows XP SP2.