problem opening a file on 2.2a1

Rajarshi Guha rajarshi at seed.chem.psu.edu
Mon Aug 20 18:37:09 EDT 2001


Rajarshi Guha wrote:

> 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:
>

Thanks - the 'from os import *' was the problem!

-- 
--
Rajarshi Guha



More information about the Python-list mailing list