On 09/02/07, Jalil <[EMAIL PROTECTED]> wrote: Hi Jalil,
Because you're doing this: > from os import * It means that when you get to this line: > fh=open(filename) You're actually calling os.open, which is lower-level than the standard open() and expects different arguments. Many people recommend not doing "from .. import *" if you can possibly avoid it because of this precise problem! -- John. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor