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

Oleg Broytmann phd at phd.pp.ru
Mon Mar 4 13:27:30 EST 2002


On Mon, Mar 04, 2002 at 11:56:36AM -0600, Eric Torstenson wrote:
> OK, imported __builtin__ and used __builtin__.open(blah, blah) and got the
> same result, so I am guessing that is not a matter of function hiding, but
> some other error that I am just being blind to.

   Try to call it "open(filename, 'w')" - that is, without "mode="...

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