problem opening a file on 2.2a1
Rajarshi Guha
rajarshi at seed.chem.psu.edu
Mon Aug 20 14:23:32 EDT 2001
Hi,
I compiled Python 2.2a1 on RedHat 7.0. When I enter the python
interpreter from the command line the code:
data = open('data.out','w')
works fine. But when I try it froma script I get the error:
Traceback (most recent call last):
File "./p.py", line 12, in ?
data = open('data.out','w')
TypeError: an integer is required
What am I doing wrong?
TIA,
--
--
Rajarshi Guha
More information about the Python-list
mailing list