Newbie pythoner, with bizzare problem

Michael Hudson mwh21 at cam.ac.uk
Sat Jul 22 06:42:06 EDT 2000


milenko at moonshine.co.uk (Jack) writes:

> Hey there, 
> 
> im pretty new to using python, and im just experimenting with file access, 
> a wrote a script that works fine, and then all of a sudden it started 
> throwing up this error:
> 
> inp = open("c:/autoexec.bat",'r')
> TypeError: illegal argument type for built-in operation
> 
> it was working fine before, and i dont see anything unusual in the syntax.
> 
> Any help would be appreciated,

5 gets you 7 that you have added a 

from os import *

to your script.

Don't do that.

Cheers,
M.

-- 
  There are two kinds of large software systems: those that evolved
  from small systems and those that don't work.
                           -- Seen on slashdot.org, then quoted by amk



More information about the Python-list mailing list