open() error ---- what am I missing?

Oleg Broytmann phd at phd.pp.ru
Mon Mar 4 12:38:34 EST 2002


On Mon, Mar 04, 2002 at 11:31:46AM -0600, Eric Torstenson wrote:
>         self.fLog=open(filename, mode='w')
>     IOError: invalid argument: w

   Do you have the os module imported? Especially in the form
"from os import *" or "from os import open"?

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list