Python 3: exec arg 1

Alan G Isaac alan.isaac at
Sat Jan 17 23:03:06 CET 2009

> Alan G Isaac wrote:
>> Is it intentional that ``exec`` cannot handle a TextIOWrapper?

>> Bottom line: has ``execfile(filename)`` really become
>> ``exec(open(filename).read())``? Is this a good thing?

On 1/17/2009 4:20 PM Terry Reedy apparently wrote:
> Yes. Yes.

OK.  Why?

Alan Isaac

More information about the Python-list mailing list