Execute commands from file

Douglas Woodrow newsgroups at nospam.demon.co.uk
Thu May 17 06:02:31 EDT 2007


On Thu, 17 May 2007 00:30:23, i3dmaster <i3dmaster at gmail.com> wrote
>f = open(file,'rb')
>for i in f:
>        exec i

Why are you opening the file in binary mode?

-- 
Doug Woodrow




More information about the Python-list mailing list