On May 17, 3:02 am, Douglas Woodrow <[EMAIL PROTECTED]>
wrote:
> On Thu, 17 May 2007 00:30:23, i3dmaster <[EMAIL PROTECTED]> wrote
>
> >f = open(file,'rb')
> >for i in f:
> >        exec i
>
> Why are you opening the file in binary mode?
>
> --
> Doug Woodrow

'b' is generally useful on systems that don't treat binary and text
files differently. It will improve portability.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to